Add pc/ — PyInstaller build scripts, .ico icon, and README

This commit is contained in:
KansaiGaijin
2026-07-07 13:25:27 +12:00
parent 262292228e
commit 1893073af0
5 changed files with 102 additions and 0 deletions

20
pc/build.bat Normal file
View 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