summaryrefslogtreecommitdiff
path: root/.goreleaser.yml
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-07-25 22:35:29 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-07-26 17:44:09 +0900
commitb896e0d3140e4a80725fe5a54a9703e4a46e8b65 (patch)
tree5902b1f0e63df9a58f74ed154b1359d9d0a58fb7 /.goreleaser.yml
parent559fb7ee4552312f59a4bbe428199db9f5aa1247 (diff)
downloadfzf-b896e0d3140e4a80725fe5a54a9703e4a46e8b65.tar.gz
0.54.2
Diffstat (limited to '.goreleaser.yml')
-rw-r--r--.goreleaser.yml96
1 files changed, 38 insertions, 58 deletions
diff --git a/.goreleaser.yml b/.goreleaser.yml
index 971ccb79..b6131591 100644
--- a/.goreleaser.yml
+++ b/.goreleaser.yml
@@ -1,4 +1,5 @@
---
+version: 2
project_name: fzf
before:
@@ -6,60 +7,9 @@ before:
- go mod download
builds:
- - id: fzf-macos
- binary: fzf
- goos:
- - darwin
- goarch:
- - amd64
- flags:
- - -trimpath
- ldflags:
- - "-s -w -X main.version={{ .Version }} -X main.revision={{ .ShortCommit }}"
- hooks:
- post: |
- sh -c '
- cat > /tmp/fzf-gon-amd64.hcl << EOF
- source = ["./dist/fzf-macos_darwin_amd64_v1/fzf"]
- bundle_id = "junegunn.fzf"
- sign {
- application_identity = "Developer ID Application: Junegunn Choi (Y254DRW44Z)"
- }
- zip {
- output_path = "./dist/fzf-{{ .Version }}-darwin_amd64.zip"
- }
- EOF
- gon /tmp/fzf-gon-amd64.hcl
- '
-
- - id: fzf-macos-arm
- binary: fzf
- goos:
- - darwin
- goarch:
- - arm64
- flags:
- - -trimpath
- ldflags:
- - "-s -w -X main.version={{ .Version }} -X main.revision={{ .ShortCommit }}"
- hooks:
- post: |
- sh -c '
- cat > /tmp/fzf-gon-arm64.hcl << EOF
- source = ["./dist/fzf-macos-arm_darwin_arm64/fzf"]
- bundle_id = "junegunn.fzf"
- sign {
- application_identity = "Developer ID Application: Junegunn Choi (Y254DRW44Z)"
- }
- zip {
- output_path = "./dist/fzf-{{ .Version }}-darwin_arm64.zip"
- }
- EOF
- gon /tmp/fzf-gon-arm64.hcl
- '
-
- id: fzf
goos:
+ - darwin
- linux
- windows
- freebsd
@@ -89,6 +39,42 @@ builds:
- goos: openbsd
goarch: arm64
+# .goreleaser.yaml
+notarize:
+ macos:
+ - # Whether this configuration is enabled or not.
+ #
+ # Default: false.
+ # Templates: allowed.
+ enabled: "{{ not .IsSnapshot }}"
+
+ # Before notarizing, we need to sign the binary.
+ # This blocks defines the configuration for doing so.
+ sign:
+ # The .p12 certificate file path or its base64'd contents.
+ certificate: "{{.Env.MACOS_SIGN_P12}}"
+
+ # The password to be used to open the certificate.
+ password: "{{.Env.MACOS_SIGN_PASSWORD}}"
+
+ # Then, we notarize the binaries.
+ notarize:
+ # The issuer ID.
+ # Its the UUID you see when creating the App Store Connect key.
+ issuer_id: "{{.Env.MACOS_NOTARY_ISSUER_ID}}"
+
+ # Key ID.
+ # You can see it in the list of App Store Connect Keys.
+ # It will also be in the ApiKey filename.
+ key_id: "{{.Env.MACOS_NOTARY_KEY_ID}}"
+
+ # The .p8 key file path or its base64'd contents.
+ key: "{{.Env.MACOS_NOTARY_KEY}}"
+
+ # Whether to wait for the notarization to finish.
+ # Not recommended, as it could take a really long time.
+ wait: true
+
archives:
- name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
builds:
@@ -100,18 +86,12 @@ archives:
files:
- non-existent*
-checksum:
- extra_files:
- - glob: ./dist/fzf-*darwin*.zip
-
release:
github:
owner: junegunn
name: fzf
prerelease: auto
name_template: '{{ .Version }}'
- extra_files:
- - glob: ./dist/fzf-*darwin*.zip
snapshot:
name_template: "{{ .Version }}-devel"