BAPSicle/build/build-linux.sh

34 lines
701 B
Bash
Raw Normal View History

2020-11-03 20:13:32 +00:00
#!/bin/bash
2022-03-19 16:04:13 +00:00
set -x
2020-11-03 20:13:32 +00:00
cd "$(dirname "$0")"
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)"
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
2021-11-02 22:46:41 +00:00
sudo apt install libportaudio2
2022-03-11 21:58:12 +00:00
sudo apt install python3-pip python3-venv ffmpeg
2020-11-03 20:13:32 +00:00
2021-04-11 18:02:19 +00:00
python3 -m venv ../venv
source ../venv/bin/activate
2021-09-11 20:19:45 +00:00
pip3 install wheel
2020-11-03 20:13:32 +00:00
pip3 install -r requirements.txt
pip3 install -r requirements-linux.txt
2021-04-11 18:02:19 +00:00
pip3 install -e ../
2020-11-03 20:13:32 +00:00
python3 ./generate-build-exe-config.py
2021-11-02 22:46:41 +00:00
chmod +x output/BAPSicle
2020-11-03 20:13:32 +00:00
python3 ./build-exe.py
bash ./build-exe-pyinstaller-command.sh
rm ./*.spec
rm ../build.py