continue-custom/buildm1.sh
2023-08-23 15:53:39 -07:00

22 lines
No EOL
445 B
Bash

#!/bin/sh
# 1. Remove unwanted stuff
rm -rf build
rm -rf env
rm -rf dist
rm -rf continuedev/.venv
# 2. Create a new virtual environment and activate it
python3 -m venv env
source env/bin/activate
# 3. Install the required packages
pip install -r continuedev/requirements.txt
pip install pyinstaller
# 4. Call PyInstaller from within the virtual environment
env/bin/pyinstaller run.m1.spec
# 5. Deactivate the virtual environment
deactivate