nuitka-windows-packaginglisted
Install: claude install-skill Mixard/fable-pack
# Nuitka Windows Packaging (Commercial-Grade)
Approach: **Nuitka standalone folder mode (dist) + Inno Setup packaging**. No single-file builds (slow startup, antivirus flags, missing-DLL failures), no stray console window.
## Flag Gotchas (version-specific)
- `--disable-console` is **deprecated**. Use `--windows-console-mode=disable`.
- Inno Setup: `ArchitecturesInstallIn64BitMode=x64` is deprecated; use `x64compatible` — and only for 64-bit builds. Omit the directive entirely for 32-bit builds.
- `wmic` is removed on Windows 11 22H2+; detect CPU cores with the `%NUMBER_OF_PROCESSORS%` env var in batch scripts (a failed probe leaves `--jobs=0` = single-threaded compile).
- Nuitka + MinGW fails on non-ASCII source paths: copy sources to an ASCII path and set `PYTHONIOENCODING=utf-8`.
- If `_nuitka_temp.exe` appears in dist, exclude it from the installer `[Files]`.
- Do not use UPX compression — it reliably triggers antivirus false positives.
## Nuitka Compile Recipes
### Tkinter app (lightest; expect 80-120 MB after optimization)
```batch
nuitka --standalone --windows-console-mode=disable ^
--lto=yes ^
--jobs=8 ^
--enable-plugin=tk-inter ^
--enable-plugin=anti-bloat ^
--noinclude-pytest-mode=nofollow ^
--noinclude-setuptools-mode=nofollow ^
--nofollow-import-to=unittest,test,pytest,_pytest,doctest,pdb,pdbpp ^
--nofollow-import-to=setuptools,pip,distutils,pkg_resources ^
--nofollow-import-to=email.mime,http.server,xmlrpc,pydoc ^
--p