mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-12-27 19:04:19 +08:00
0cd1711bcf
- `-skip_ach`: skip downloading & generating achievements and their images - `-skip_con`: skip downloading & generating controller configuration files - `-skip_inv`: skip downloading & generating inventory data (`items.json` & `default_items.json`) * copy the readme of the migration tool after build * let the migration tool exit with code 1 if nothing was found
30 lines
642 B
Bash
30 lines
642 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
|
|
|
|
cp -f "README.md" "$out_dir/migrate_gse"
|
|
|
|
echo;
|
|
echo =============
|
|
echo Built inside: "$out_dir/"
|
|
|
|
[[ -d "$build_temp_dir" ]] && rm -r -f "$build_temp_dir"
|
|
|
|
deactivate
|