From 5e21ccdb61dc2f53978757084b8520c4593070b1 Mon Sep 17 00:00:00 2001 From: triwinds Date: Mon, 8 Apr 2024 21:30:13 +0800 Subject: [PATCH] update ci --- .github/workflows/ci-build.yaml | 3 +-- package_all.bat | 9 +++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 package_all.bat diff --git a/.github/workflows/ci-build.yaml b/.github/workflows/ci-build.yaml index 2a508fd..633502c 100644 --- a/.github/workflows/ci-build.yaml +++ b/.github/workflows/ci-build.yaml @@ -39,8 +39,7 @@ jobs: poetry config installer.parallel false poetry config --list poetry install - poetry run pyinstaller --noconfirm --onefile --windowed --icon "./web/favicon.ico" --add-data "./module/*.exe;./module/" --add-data "./web;web/" --additional-hooks-dir=".\\hooks" "./main_devnull.py" --name "NsEmuTools" - poetry run pyinstaller --noconfirm --onefile --console --icon "./web/favicon.ico" --add-data "./module/*.exe;./module/" --add-data "./web;web/" --additional-hooks-dir=".\\hooks" "./main.py" --name "NsEmuTools-console" + .\package_all.bat # pip install pywebview # pyinstaller --noconfirm --onefile --console --icon "./web/favicon.ico" --add-data "./module/*.exe;./module/" --add-data "./web;web/" --additional-hooks-dir=".\\hooks" "./ui_webview.py" --name "NsEmuTools-webview" - uses: actions/upload-artifact@v3 diff --git a/package_all.bat b/package_all.bat new file mode 100644 index 0000000..50edfed --- /dev/null +++ b/package_all.bat @@ -0,0 +1,9 @@ +@echo off +chcp>nul 2>nul 65001 +:path +cd>nul 2>nul /D %~dp0 +rem call venv\Scripts\activate.bat +poetry run pyinstaller --noconfirm --onefile --windowed --upx-dir "./build_tools/upx/" --icon "./web/favicon.ico" --add-data "./module/*.exe;./module/" --add-data "./web;web/" "./main_devnull.py" --additional-hooks-dir=".\\hooks" --name "NsEmuTools" +poetry run pyinstaller --noconfirm --onefile --console --upx-dir "./build_tools/upx/" --icon "./web/favicon.ico" --add-data "./module/*.exe;./module/" --add-data "./web;web/" "./main.py" --additional-hooks-dir=".\\hooks" --name "NsEmuTools-console" +rem pyinstaller --noconfirm --onefile --console --icon "./web/favicon.ico" --add-data "./module/*.exe;./module/" --add-data "./web;web/" "./ui_webview.py" --additional-hooks-dir=".\\hooks" --name "NsEmuTools-webview" +pause