Add native ReleaseKit bootstrap
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -22,6 +22,9 @@
|
|||||||
go.work
|
go.work
|
||||||
go.work.sum
|
go.work.sum
|
||||||
|
|
||||||
|
# Local ReleaseKit executable
|
||||||
|
.releasekit/
|
||||||
|
|
||||||
# env file
|
# env file
|
||||||
.env
|
.env
|
||||||
|
|
||||||
@@ -67,4 +70,3 @@ Icon
|
|||||||
.AppleDesktop
|
.AppleDesktop
|
||||||
Network Trash Folder
|
Network Trash Folder
|
||||||
Temporary Items
|
Temporary Items
|
||||||
.apdisk
|
|
||||||
|
|||||||
@@ -62,6 +62,18 @@ origin. No repeated release-specific diff review is required.
|
|||||||
|
|
||||||
## Validate And Publish
|
## 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):
|
Run the following with the chosen unused version (replace the placeholder):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
|||||||
@@ -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
|
Status: Stage 1's tool selection and dependency preparation are complete in
|
||||||
`3ca01ae`. The agreed series-based Go minimum supersedes the original patch-based
|
`3ca01ae`. The agreed series-based Go minimum supersedes the original patch-based
|
||||||
requirement. Stage 2's example checker and shared validation profile are
|
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
|
## Baseline And Working Rules
|
||||||
|
|
||||||
|
|||||||
18
scripts/releasekit.sh
Executable file
18
scripts/releasekit.sh
Executable 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 "$@"
|
||||||
Reference in New Issue
Block a user