Skip to content

Commit

Permalink
add support for windows releases
Browse files Browse the repository at this point in the history
  • Loading branch information
wagoodman committed May 20, 2024
1 parent a28bee0 commit 04cd4c7
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 6 deletions.
1 change: 1 addition & 0 deletions bouncer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ get_binaries() {
linux/amd64) BINARIES="bouncer" ;;
darwin/arm64) BINARIES="bouncer" ;;
linux/arm64) BINARIES="bouncer" ;;
windows/amd64) BINARIES="bouncer.exe" ;;
*)
log_crit "platform $PLATFORM is not supported. Make sure this script is up-to-date and file request at https://github.com/${PREFIX}/issues/new"
exit 1
Expand Down
41 changes: 35 additions & 6 deletions goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,46 @@
release:
prerelease: auto

env:
- CGO_ENABLED=0

builds:
- binary: bouncer
env:
- CGO_ENABLED=0
- id: linux-build
binary: bouncer
goos:
- darwin
- linux
goarch:
- amd64
- arm64
ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.buildTime={{.Date}}`.
ldflags: &build-ldflags -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.buildTime={{.Date}}`.

- id: darwin-build
binary: bouncer
goos:
- darwin
goarch:
- amd64
- arm64
ldflags: *build-ldflags

- id: windows-build
binary: bouncer.exe
goos:
- windows
goarch:
- amd64
ldflags: *build-ldflags

archives:
- format: tar.gz
- id: linux-archives
builds:
- linux-build

- id: darwin-archives
builds:
- darwin-build

- id: windows-archives
format: zip
builds:
- windows-build

0 comments on commit 04cd4c7

Please sign in to comment.