From a75a8f42bcd55a9dd5ac1108f66156c711c2bdca Mon Sep 17 00:00:00 2001 From: Pakobbix Date: Sat, 27 May 2023 11:10:35 +0200 Subject: [PATCH] still trying to use venv for packaging p2 --- .github/workflows/package.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index bddea57..c39ea65 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -21,23 +21,32 @@ jobs: uses: actions/checkout@v3 - name: Create and activate venv + run: python -m venv StartUI_env + + - name: activate venv run: | - python -m venv StartUI_env if [ "$RUNNER_OS" == "Windows" ]; then - StartUI_env\Scripts\activate.bat + StartUI_env\Scripts\activate else source StartUI_env/bin/activate fi + - name: Upgrade Pip + run: python -m pip install --upgrade pip + - name: Install dependencies - run: | - python -m pip install --upgrade pip pip install -r requirements.txt pip install pyinstaller - name: Build and package run: pyinstaller --noconfirm --onefile --windowed StartUI.py --add-data="webuiGUI.py:." + - name: deactivate venv + run: deactivate + + - name: delete venv + run: rm -rf StartUI_env + - name: Upload artifacts uses: actions/upload-artifact@v3 with: