The previous test command broke on nested quotes before make check started. Co-authored-by: Cursor <cursoragent@cursor.com>
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, then:
scoop install git msys2
In the UCRT64 shell (C:\Users\<you>\scoop\apps\msys2\current\ucrt64.exe, or bash after MSYSTEM=UCRT64):
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
.\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. .\ck.ps1 fetch-sources -Latest (and publish -Latest) instead takes whatever https://code.call-cc.org/releases/current/ is serving and overwrites upstream.version and upstream.sha256. 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.