Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
triwinds committed Apr 8, 2024
1 parent 489ec2e commit 5e21ccd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions package_all.bat
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5e21ccd

Please sign in to comment.