Files
chicken6-4-win/README.md
Pavel Kulyov f1389e92d1 Add the Windows CHICKEN 6 build and release scripts.
Upstream does not ship a Windows binary, so this tree fetches a release tarball, applies the MinGW patches, and publishes a UCRT64 prefix.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-09 01:09:55 +03:00

45 lines
1.3 KiB
Markdown

# 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\<you>\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
```
`publish` runs fetch, patch, build, and test, then uploads `work/dist/chicken-<version>-ucrt64-x86_64.zip`. The tag is `<upstream>-win<revision>` (`revision` in this repo, currently `6.0.0-win1`). 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.