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>
This commit is contained in:
2026-10-09 01:24:29 +03:00
parent 11310502f8
commit 4adc949e1b
4 changed files with 48 additions and 25 deletions

View File

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