From 646b7419a57c65b18a7d5363032b12a16b4dd64c Mon Sep 17 00:00:00 2001 From: Pakobbix Date: Sat, 27 May 2023 08:12:41 +0200 Subject: [PATCH] trying venv to hopefully decrease the binary size --- .github/workflows/package.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index e0e27bd..50c006c 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -20,6 +20,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 + - name: Create and activate venv + run: | + python -m venv StartUI_env + source StartUI_env/bin/activate + - name: Install dependencies run: | python -m pip install --upgrade pip @@ -29,6 +34,11 @@ jobs: - name: Build and package run: pyinstaller --noconfirm --onefile --windowed StartUI.py --add-data="webuiGUI.py:." + - name: Leave venv and delete + run: | + deactivate + rm -rf StartUI_env + - name: Upload artifacts uses: actions/upload-artifact@v3 with: