Add -Latest to fetch whatever releases/current is serving.

The pinned version and hash stay in chicken.json unless that flag overwrites them.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-09 01:36:58 +03:00
parent 4adc949e1b
commit 1deae560ea
2 changed files with 43 additions and 11 deletions

View File

@@ -37,7 +37,7 @@ GITEA_TOKEN=...
.\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>`.
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.