From 8bb435950f997392ababd58c955d8aed5cbb98b8 Mon Sep 17 00:00:00 2001 From: Santiago Martinez Date: Thu, 11 Jan 2024 12:29:33 +0000 Subject: [PATCH] DO not source the venv in bundle --- scripts/bundle.sh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/scripts/bundle.sh b/scripts/bundle.sh index 0f5ee236..416e9499 100644 --- a/scripts/bundle.sh +++ b/scripts/bundle.sh @@ -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" \ @@ -41,5 +38,5 @@ pyinstaller \ --add-data "alembic.ini:." \ --splash "../front/public/whombat512x512png.png" \ --name whombat \ - --onefile \ + --onefile \ app.py