add goreleaser configuration for binaries and deb/rpm packages
- build static binaries for linux, darwin and freebsd - create deb and rpm packages that register gosh in /etc/shells - publish releases to Gitea - add --version flag, set at build time via ldflags Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d5c3d03a21
commit
37d6802815
6 files changed
+152
No files matched your search
@@ -44,3 +44,20 @@ _gosh is not meant for production use, it is just a proof of concept._
|
||||
```bash
|
||||
go build ./
|
||||
```
|
||||
|
||||
## Release
|
||||
|
||||
Binaries sowie `.deb`- und `.rpm`-Pakete werden mit [GoReleaser](https://goreleaser.com) gebaut (Konfiguration: `.goreleaser.yaml`).
|
||||
|
||||
```bash
|
||||
# lokal testen, ohne etwas zu veröffentlichen (Ergebnis in dist/)
|
||||
goreleaser release --snapshot --clean
|
||||
|
||||
# Release auf Gitea veröffentlichen
|
||||
export GITEA_TOKEN=...
|
||||
git tag -a v0.1.0 -m "v0.1.0"
|
||||
git push origin v0.1.0
|
||||
goreleaser release --clean
|
||||
```
|
||||
|
||||
Das Paket installiert `/usr/bin/gosh` und trägt die Shell in `/etc/shells` ein, sodass sie mit `chsh -s /usr/bin/gosh` gesetzt werden kann.
|
||||
Reference in new issue
Block a user