BAPSicle/build/build-macos.sh

26 lines
557 B
Bash
Raw Normal View History

#!/bin/bash
cd "$(dirname "$0")"
2021-04-11 18:02:19 +00:00
build_commit="$(git rev-parse --short HEAD)"
echo "BUILD: str = \"$build_commit\"" > ../build.py
2021-04-11 18:02:19 +00:00
sed -i '' -e "s/BUILD_COMMIT/$build_commit/" "../config.py"
python3 -m venv ../venv
source ../venv/bin/activate
pip3 install -r requirements.txt
pip3 install -r requirements-macos.txt
pip3 install -e ..\
python3 ./generate-build-exe-config.py
python3 ./build-exe.py
bash ./build-exe-pyinstaller-command.sh
rm ./*.spec
brew install platypus
platypus --load-profile ./BAPSicle.platypus --overwrite ./output/BAPSicle.app