2026-06-06 17:40:27 +08:00
|
|
|
if [ ! -d "$DIR" ]; then
|
|
|
|
|
uv venv
|
|
|
|
|
fi
|
|
|
|
|
|
2026-06-06 17:18:25 +08:00
|
|
|
echo "Checking environment..."
|
|
|
|
|
if command -v nuitka &> /dev/null; then
|
|
|
|
|
echo "Nuitka installed"
|
|
|
|
|
else
|
|
|
|
|
echo "Nuitka not installed. Install it via \"uv pip install nuitka\" !" >&2
|
2026-06-06 17:24:47 +08:00
|
|
|
exit 1
|
2026-06-06 17:18:25 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
nuitka --onefile --standalone --output-filename=serverjar main.py --output-filename=serverjar
|
|
|
|
|
nuitka --onefile --standalone --output-filename=sarclent client.py --output-filename=sarclient
|
|
|
|
|
|
|
|
|
|
echo "Done."
|