Skip to content

Commit

Permalink
script update
Browse files Browse the repository at this point in the history
  • Loading branch information
latorc committed Apr 17, 2024
1 parent f9c3d79 commit d034534
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/generate_exe.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ REM Windows
set PLAYWRIGHT_BROWSERS_PATH=0
playwright install chromium

rmdir /s /q dist\MahjongCopilot
rmdir /s /q dist
pyinstaller --windowed --noconfirm --name=MahjongCopilot --icon=resources/icon.ico main.py
if errorlevel 1 (
echo PyInstaller encountered an error.
Expand All @@ -16,5 +16,7 @@ robocopy resources dist\MahjongCopilot\resources /E
robocopy liqi_proto dist\MahjongCopilot\liqi_proto /E
robocopy .\libriichi3p\ dist\MahjongCopilot\libriichi3p\ "Put libriichi3p files in this folder"
robocopy .venv\Lib\site-packages\playwright\driver\package\.local-browsers dist\MahjongCopilot\_internal\playwright\driver\package\.local-browsers /E
"C:\Program Files\7-Zip\7z.exe" a -t7z dist\MahjongCopilot.windows.7z dist\MahjongCopilot
cd dist
"C:\Program Files\7-Zip\7z.exe" a -t7z MahjongCopilot.windows.7z MahjongCopilot
cd..
explorer.exe dist

0 comments on commit d034534

Please sign in to comment.