mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-30 14:25:36 +08:00
28 lines
600 B
Bash
28 lines
600 B
Bash
|
#!/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...
|
||
|
pyinstaller "main.py" --distpath "$out_dir" -y --clean --onedir --name "migrate_gse" --noupx --console -i "NONE" --workpath "$build_temp_dir" || exit 1
|
||
|
|
||
|
echo;
|
||
|
echo =============
|
||
|
echo Built inside: "$out_dir/"
|
||
|
|
||
|
[[ -d "$build_temp_dir" ]] && rm -r -f "$build_temp_dir"
|
||
|
|
||
|
deactivate
|