Skip to content

Commit

Permalink
build binary for darwin (#522)
Browse files Browse the repository at this point in the history
  • Loading branch information
jschwinger233 authored Dec 21, 2021
1 parent f27ac83 commit 8c8e655
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ builds:

# the best practice is using prebuilt builder
# however it's a Pro feature
- id: eru-core
- id: eru-core-linux
binary: eru-core
hooks:
post:
Expand All @@ -36,6 +36,20 @@ builds:
goarch:
- amd64

- id: eru-core-darwin
binary: eru-core
env:
- CGO_ENABLED=0
ldflags:
- -w -s
- -X github.com/projecteru2/core/version.REVISION={{.Commit}}
- -X github.com/projecteru2/core/version.VERSION={{.Env.VERSION}}
- -X github.com/projecteru2/core/version.BUILTAT={{.Date}}
goos:
- darwin
goarch:
- amd64

archives:
- replacements:
darwin: Darwin
Expand Down

0 comments on commit 8c8e655

Please sign in to comment.