fzf/.goreleaser.yml

105 lines
2.2 KiB
YAML
Raw Normal View History

2020-10-26 16:46:43 +00:00
---
2024-07-25 13:35:29 +00:00
version: 2
2020-10-26 16:46:43 +00:00
project_name: fzf
before:
hooks:
- go mod download
builds:
- id: fzf
goos:
2024-07-25 13:35:29 +00:00
- darwin
2020-10-26 16:46:43 +00:00
- linux
- windows
- freebsd
- openbsd
goarch:
- amd64
- arm
- arm64
2022-11-11 15:57:33 +00:00
- loong64
- ppc64le
2023-02-22 04:32:52 +00:00
- s390x
2020-10-26 16:46:43 +00:00
goarm:
- 5
- 6
- 7
2024-04-23 08:24:50 +00:00
flags:
- -trimpath
2020-10-26 16:46:43 +00:00
ldflags:
- "-s -w -X main.version={{ .Version }} -X main.revision={{ .ShortCommit }}"
ignore:
- goos: freebsd
goarch: arm
- goos: openbsd
goarch: arm
- goos: freebsd
goarch: arm64
- goos: openbsd
goarch: arm64
2024-07-25 13:35:29 +00:00
# .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
2020-10-26 16:46:43 +00:00
archives:
- name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
builds:
- fzf
2020-10-26 16:46:43 +00:00
format: tar.gz
format_overrides:
- goos: windows
format: zip
files:
- non-existent*
release:
github:
owner: junegunn
name: fzf
prerelease: auto
name_template: '{{ .Version }}'
2020-10-26 16:46:43 +00:00
snapshot:
name_template: "{{ .Version }}-devel"
2020-10-26 16:46:43 +00:00
changelog:
sort: asc
filters:
exclude:
- README
- test