Files
chicken6-4-win/README.md
Pavel Kulyov 6057eedb2c Keep the upstream version, hash, and Gitea coordinates in chicken.json.
fetch-sources records the tarball sha256 when that field is empty, and checks it on the next run.

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

47 lines
1.6 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
```
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 `<version>-win<revision>`.
`publish` runs fetch, patch, build, and test, then uploads `work/dist/chicken-<version>-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.