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

28
pc/README.md Normal file
View File

@@ -0,0 +1,28 @@
# pc/ — Kanjin Windows Standalone
Build a single `.exe` that players can double-click to play — no Python, no IDE, no dependencies.
## Build it
```batch
cd pc
build.bat
```
Deliver `pc\Kanjin.exe` (~35 MB). The player double-clicks it, a console window opens, the game starts.
## What's inside
| File | Purpose |
|---|---|
| `build.bat` | Windows batch script — runs PyInstaller with the right flags |
| `build.sh` | Linux/macOS equivalent (for cross-builds) |
| `kanjin.ico` | Application icon embedded in the .exe |
| `generate_icon.py` | Creates `kanjin.ico` from a solid-colour PNG (run once) |
## Requirements
- Python 3.11+ installed on the **build** machine
- `pip install pyinstaller` (installed automatically by build.bat)
The **player's** machine needs nothing — the .exe is fully self-contained.