2020-10-31 03:04:14 +00:00
|
|
|
#!/bin/bash
|
2022-03-19 17:49:45 +00:00
|
|
|
set -x
|
2020-11-01 00:38:46 +00:00
|
|
|
cd "$(dirname "$0")"
|
2020-10-31 03:04:14 +00:00
|
|
|
|
2021-04-27 20:48:17 +00:00
|
|
|
# Get the git commit / branch and write it into build.py.
|
2021-04-11 18:02:19 +00:00
|
|
|
build_commit="$(git rev-parse --short HEAD)"
|
2021-04-27 20:48:17 +00:00
|
|
|
build_branch="$(git branch --show-current)"
|
2021-04-11 19:27:46 +00:00
|
|
|
echo "BUILD: str = \"$build_commit\"" > ../build.py
|
2021-04-27 20:48:17 +00:00
|
|
|
echo "BRANCH: str = \"$build_branch\"" >> ../build.py
|
2021-04-11 18:02:19 +00:00
|
|
|
|
2024-03-29 16:32:06 +00:00
|
|
|
poetry install
|
2020-10-31 03:04:14 +00:00
|
|
|
|
2024-03-29 16:38:10 +00:00
|
|
|
poetry run python3 ./generate-build-exe-config.py
|
2020-10-31 03:04:14 +00:00
|
|
|
|
2024-03-29 16:38:10 +00:00
|
|
|
poetry run python3 ./build-exe.py
|
2020-10-31 03:04:14 +00:00
|
|
|
|
|
|
|
bash ./build-exe-pyinstaller-command.sh
|
2020-11-01 00:38:46 +00:00
|
|
|
|
|
|
|
rm ./*.spec
|
|
|
|
|
2021-04-19 14:45:20 +00:00
|
|
|
cd ../
|
2024-03-29 16:38:10 +00:00
|
|
|
poetry run python3 build/generate-platypus-config.py
|
2021-04-19 14:45:20 +00:00
|
|
|
cd build
|
|
|
|
|
2020-11-01 00:38:46 +00:00
|
|
|
brew install platypus
|
|
|
|
|
|
|
|
platypus --load-profile ./BAPSicle.platypus --overwrite ./output/BAPSicle.app
|
2021-09-08 23:34:54 +00:00
|
|
|
chmod +x output/BAPSicle.app/Contents/Resources/BAPSicle
|
2021-04-19 14:45:20 +00:00
|
|
|
|
|
|
|
rm ../build.py
|