diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 921bde1..c7f9444 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -23,10 +23,16 @@ jobs: - name: Install dependencies run: | pip install -r requirements.txt - pip install pyinstaller + pip install nuitka - name: Build and package - run: pyinstaller --noconfirm --onefile --windowed StartUI.py --add-data="webuiGUI.py:." + run: nuitka StartUI.py --onefile --enable-plugin=pyqt5 --product-version=1.6.0 --disable-console --include-data-files=webuiGUI.py=webuiGUI.py --output-dir=./dist --noinclude-pytest-mode=nofollow --noinclude-setuptools-mode=nofollow + + - name: remove build folders + run: | + rm -rf dist/StartUI.build + rm -rf dist/StartUI.dist + rm -rf dist/StartUI.onefile-build - name: Upload artifacts uses: actions/upload-artifact@v3 @@ -58,9 +64,9 @@ jobs: - name: remove build folders run: | - rm -rf ./dist/StartUI.build - rm -rf ./dist/StartUI.dist - rm -rf ./dist/StartUI.onefile-build + Remove-Item -Recurse -Force ./dist/StartUI.build + Remove-Item -Recurse -Force ./dist/StartUI.dist + Remove-Item -Recurse -Force ./dist/StartUI.onefile-build - name: Upload artifacts uses: actions/upload-artifact@v3