Skip to content

Commit

Permalink
DO not source the venv in bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
mbsantiago committed Jan 11, 2024
1 parent da02bbf commit 8bb4359
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions scripts/bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,14 @@ if [ ! -d "build/.venv" ]; then
python -m venv build/.venv
fi

# Activate the virtual environment
source build/.venv/bin/activate

# Pyinstaller should be installed in the virtual environment
pip install pyinstaller
build/.venv/bin/pip install pyinstaller

# Whombat dependencies should be installed in the virtual environment
pip install .
build/.venv/bin/pip install .

# Run pyinstaller to bundle whombat into an executable file
pyinstaller \
build/.venv/bin/pyinstaller \
--hidden-import "app" \
--hidden-import "aiosqlite" \
--hidden-import "logging.config" \
Expand All @@ -41,5 +38,5 @@ pyinstaller \
--add-data "alembic.ini:." \
--splash "../front/public/whombat512x512png.png" \
--name whombat \
--onefile \
--onefile \
app.py

0 comments on commit 8bb4359

Please sign in to comment.