2024-04-20 05:08:01 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
|
|
|
|
venv=".env-linux"
|
|
|
|
out_dir="bin/linux"
|
|
|
|
build_temp_dir="bin/tmp/linux"
|
|
|
|
|
|
|
|
[[ -d "$out_dir" ]] && rm -r -f "$out_dir"
|
|
|
|
mkdir -p "$out_dir"
|
|
|
|
|
|
|
|
[[ -d "$build_temp_dir" ]] && rm -r -f "$build_temp_dir"
|
|
|
|
|
|
|
|
rm -f *.spec
|
|
|
|
|
|
|
|
chmod 777 "./$venv/bin/activate"
|
|
|
|
source "./$venv/bin/activate"
|
|
|
|
|
|
|
|
echo building migrate_gse...
|
2024-04-25 11:31:08 +02:00
|
|
|
pyinstaller "main.py" --distpath "$out_dir" -y --clean --onedir --name "migrate_gse" --noupx --console -i "NONE" --workpath "$build_temp_dir" --specpath "$build_temp_dir" || exit 1
|
2024-04-20 05:08:01 +02:00
|
|
|
|
2024-04-20 20:15:47 +02:00
|
|
|
cp -f "README.md" "$out_dir/migrate_gse"
|
|
|
|
|
2024-04-20 05:08:01 +02:00
|
|
|
echo;
|
|
|
|
echo =============
|
|
|
|
echo Built inside: "$out_dir/"
|
|
|
|
|
|
|
|
[[ -d "$build_temp_dir" ]] && rm -r -f "$build_temp_dir"
|
|
|
|
|
|
|
|
deactivate
|