# chicken6-4-win Chicken (6) 4 Windows 10+. Upstream does not ship a Windows binary. This repo keeps the MinGW patches and builds a UCRT64 prefix, then publishes that prefix as a Gitea release. CHICKEN sources are not stored here. ## Kit A clean Windows install is not a development machine. Start with [scoop](https://scoop.sh), then: ```powershell scoop install git msys2 ``` In the UCRT64 shell (`C:\Users\\scoop\apps\msys2\current\ucrt64.exe`, or `bash` after `MSYSTEM=UCRT64`): ```sh pacman -S --needed --noconfirm base-devel mingw-w64-ucrt-x86_64-gcc ``` Put `%USERPROFILE%\scoop\apps\msys2\current\ucrt64\bin` on `PATH` so `gcc` is the UCRT64 one. Publishing reads `GITEA_TOKEN` from a gitignored `.env` in this directory: ``` GITEA_TOKEN=... ``` ## Commands ```powershell .\ck.ps1 fetch-sources .\ck.ps1 patch .\ck.ps1 build .\ck.ps1 test .\ck.ps1 publish .\ck.ps1 clean ``` Versions live in `chicken.json`. The script loads and saves it with `ConvertFrom-Json` and `ConvertTo-Json`. Change `upstream.version` and clear `upstream.sha256`; `fetch-sources` downloads that release and writes the hash back. `revision` is the local serial in the same file. The tag is `-win`. `publish` runs fetch, patch, build, and test, then uploads `work/dist/chicken--ucrt64-x86_64.zip`. If that tag already exists, publish stops. Bump `revision` to ship another build of the same upstream tarball. `clean` deletes `work/` only. `csc` in the zip still has `work/prefix` compiled into it. Consumers pass `-libdir` at wherever they unpacked the zip. Sex does that.