Add pc/ — PyInstaller build scripts, .ico icon, and README
This commit is contained in:
20
pc/build.bat
Normal file
20
pc/build.bat
Normal file
@@ -0,0 +1,20 @@
|
||||
@echo off
|
||||
cd /d "%~dp0"
|
||||
echo Installing PyInstaller...
|
||||
pip install pyinstaller
|
||||
|
||||
echo Building Kanjin.exe...
|
||||
REM --onefile: single executable
|
||||
REM --name: output filename
|
||||
REM --icon: application icon
|
||||
REM --distpath=. : place .exe in this directory (pc/)
|
||||
REM --workpath: temp build folder (cleaned up)
|
||||
python -m PyInstaller --onefile --name Kanjin --icon=kanjin.ico --distpath=. --workpath=build_temp ..\main.py
|
||||
|
||||
echo Cleaning up...
|
||||
rd /s /q build_temp __pycache__ 2>nul
|
||||
del Kanjin.spec 2>nul
|
||||
|
||||
echo.
|
||||
echo Done! Deliver pc\Kanjin.exe to players.
|
||||
pause
|
||||
Reference in New Issue
Block a user