Skip to content

Commit 80468ee

Browse files
committed
update build
1 parent 97eb296 commit 80468ee

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tools/build.ps1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
pip freeze > requirements.lock.txt
22
python .\tools\build.py
33

4+
Remove-Item -Path "build" -Recurse -Force -ErrorAction SilentlyContinue
5+
Remove-Item -Path "dist" -Recurse -Force -ErrorAction SilentlyContinue
6+
Remove-Item -Path "*.spec" -Force -ErrorAction SilentlyContinue
47

5-
pyinstaller DMMGamePlayerFastLauncher\DMMGamePlayerFastLauncher.py --noconsole --onefile --add-data ".venv\Lib\site-packages\customtkinter\;customtkinter" --icon assets\icons\DMMGamePlayerFastLauncher.ico
8+
.\.venv\Scripts\pyinstaller.exe DMMGamePlayerFastLauncher\DMMGamePlayerFastLauncher.py --noconsole --onefile --collect-all customtkinter --collect-all selenium --icon assets\icons\DMMGamePlayerFastLauncher.ico
69

710
Copy-Item -Path "dist\DMMGamePlayerFastLauncher.exe" -Destination "windows" -Force
811
Copy-Item -Path "assets" -Destination "windows" -Force -Recurse
912

1013
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/kira-96/Inno-Setup-Chinese-Simplified-Translation/refs/heads/main/ChineseSimplified.isl" -OutFile "C:\Users\yuki\AppData\Local\Programs\Inno Setup 6\Languages\ChineseSimplified.isl"
1114
Start-Process "C:\Users\yuki\AppData\Local\Programs\Inno Setup 6\ISCC.exe" "setup.iss" -Wait -NoNewWindow
1215

13-
Compress-Archive -Path "windows\*" -DestinationPath "dist\DMMGamePlayerFastLauncher.zip" -Force
16+
Compress-Archive -Path "windows\*" -DestinationPath "dist\DMMGamePlayerFastLauncher.zip" -Force

0 commit comments

Comments
 (0)