summaryrefslogtreecommitdiffstats
path: root/.goreleaser.yml
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2021-02-25 21:31:15 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2021-02-25 21:31:15 +0900
commitd57c6d0284c2fc7040d101bc70f39978ff9e58f8 (patch)
treeb8aae09a14a936d09d10b0d521e6d2db5e4d6fe4 /.goreleaser.yml
parent76bbf57b3dad4bd29e2f51337de11732a2146e5f (diff)
Update build script to build macOS arm64 binary
Close #2361
Diffstat (limited to '.goreleaser.yml')
-rw-r--r--.goreleaser.yml17
1 files changed, 16 insertions, 1 deletions
diff --git a/.goreleaser.yml b/.goreleaser.yml
index 57e3b287..62b985de 100644
--- a/.goreleaser.yml
+++ b/.goreleaser.yml
@@ -12,10 +12,25 @@ builds:
- darwin
goarch:
- amd64
+ - arm64
ldflags:
- "-s -w -X main.version={{ .Version }} -X main.revision={{ .ShortCommit }}"
hooks:
- post: gon .gon.hcl
+ post: |-
+ sh -c '
+ cat > /tmp/fzf-gon.hcl << EOF
+ source = ["./dist/fzf-macos_darwin_{{ .Arch }}/fzf"]
+ bundle_id = "kr.junegunn.fzf"
+ apple_id {
+ username = "junegunn.c@gmail.com"
+ password = "@env:AC_PASSWORD"
+ }
+ sign {
+ application_identity = "Apple Development: junegunn.c@gmail.com"
+ }
+ EOF
+ gon /tmp/fzf-gon.hcl
+ '
- goos:
- linux