Add native ReleaseKit bootstrap

This commit is contained in:
2026-10-08 16:23:26 +00:00
parent 0d163f8165
commit d5940856be
4 changed files with 35 additions and 2 deletions

4
.gitignore vendored
View File

@@ -22,6 +22,9 @@
go.work
go.work.sum
# Local ReleaseKit executable
.releasekit/
# env file
.env
@@ -67,4 +70,3 @@ Icon
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

View File

@@ -62,6 +62,18 @@ origin. No repeated release-specific diff review is required.
## Validate And Publish
For an optional local diagnostic of a committed candidate, run:
```sh
./scripts/releasekit.sh check vMAJOR.MINOR.PATCH
```
The candidate must be committed on `main`, use a stable version, and include
its version-matched release note. See the upstream
[candidate check contract](https://gitea.maximumdirect.net/eric/ReleaseKit/src/tag/v0.2.0/docs/consumers/check.md)
for its requirements. This diagnostic is optional and is not required before
publication.
Run the following with the chosen unused version (replace the placeholder):
```sh

View File

@@ -7,7 +7,8 @@ owns the implementation steps; the roadmap owns purpose and selected policy.
Status: Stage 1's tool selection and dependency preparation are complete in
`3ca01ae`. The agreed series-based Go minimum supersedes the original patch-based
requirement. Stage 2's example checker and shared validation profile are
complete. Resume adoption at Stage 3 after this revision.
complete in `0d163f8`. Stage 3's native tool bootstrap is complete. Resume
adoption at Stage 4 after this revision.
## Baseline And Working Rules

18
scripts/releasekit.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
export GOTOOLCHAIN=local
export GOWORK=off
export GOFLAGS=-mod=readonly
GOOS=$(go env GOHOSTOS)
GOARCH=$(go env GOHOSTARCH)
export GOOS GOARCH
mkdir -p .releasekit/bin
go build -mod=readonly -o .releasekit/bin/releasekit \
"gitea.maximumdirect.net/eric/ReleaseKit/cmd/releasekit"
exec ./.releasekit/bin/releasekit "$@"