This commit is contained in:
idk
2022-09-29 17:23:08 -04:00
parent 078af61777
commit 209231db4f
2 changed files with 40 additions and 1 deletions

3
.gitignore vendored
View File

@ -2,3 +2,6 @@ i2pkeys
onionkeys
tlskeys
singlefile
singlefile-*
log
err

36
release.sh Executable file
View File

@ -0,0 +1,36 @@
#! /usr/bin/env sh
export CGO_ENABLED=0
export USER="eyedeekay"
export REPO="singlefile"
export NAME="first release"
export DESC="A simple server which serves the same data for all requests"
export VERSION="0.0.1"
github-release release --user "$USER" --repo "$REPO" --name "$NAME" --tag "$VERSION" --description "$DESC"
export GOARCH=amd64 GOOS=windows
go build -o "singlefile-$GOOS-$GOARCH.exe"
export SUM=$(sha256sum "singlefile-$GOOS-$GOARCH.exe")
github-release upload --user "$USER" --repo "$REPO" --tag "$VERSION" --label "$SUM" --name "singlefile-$GOOS-$GOARCH.exe" --file "singlefile-$GOOS-$GOARCH.exe"
export GOARCH=amd64 GOOS=linux
go build -o "singlefile-$GOOS-$GOARCH"
export SUM=$(sha256sum "singlefile-$GOOS-$GOARCH")
github-release upload --user "$USER" --repo "$REPO" --tag "$VERSION" --label "$SUM" --name "singlefile-$GOOS-$GOARCH" --file "singlefile-$GOOS-$GOARCH"
export GOARCH=arm64 GOOS=linux
go build -o "singlefile-$GOOS-$GOARCH"
export SUM=$(sha256sum "singlefile-$GOOS-$GOARCH")
github-release upload --user "$USER" --repo "$REPO" --tag "$VERSION" --label "$SUM" --name "singlefile-$GOOS-$GOARCH" --file "singlefile-$GOOS-$GOARCH"
export GOARCH=amd64 GOOS=darwin
go build -o "singlefile-$GOOS-$GOARCH"
export SUM=$(sha256sum "singlefile-$GOOS-$GOARCH")
github-release upload --user "$USER" --repo "$REPO" --tag "$VERSION" --label "$SUM" --name "singlefile-$GOOS-$GOARCH" --file "singlefile-$GOOS-$GOARCH"
export GOARCH=arm64 GOOS=darwin
go build -o "singlefile-$GOOS-$GOARCH"
export SUM=$(sha256sum "singlefile-$GOOS-$GOARCH")
github-release upload --user "$USER" --repo "$REPO" --tag "$VERSION" --label "$SUM" --name "singlefile-$GOOS-$GOARCH" --file "singlefile-$GOOS-$GOARCH"