Sign and notarize macOS binaries
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Close #2408
authored by Junegunn Choi · committed by Junegunn Choi · parent 3d37a5b · Browse files · 2 files·+62 added−17 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+62 added−17 removed
- other:+62 added−17 removed
Provenance
- Commit
c440418- Tree
33a14e3- Author
Junegunn Choi <junegunn.c@gmail.com>- Committer
Junegunn Choi <junegunn.c@gmail.com>- Parent
3d37a5b
2 files changed+62 added−17 removed
modified:.goreleaser.yml+61 added-17 removed
10 unmodified lines11121314151617181920212223242518192021222324252627282930313233262735282930313218 unmodified lines515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211226 unmodified lines10 unmodified lines goos: - darwin goarch: - amd64 ldflags: - "-s -w -X main.version={{ .Version }} -X main.revision={{ .ShortCommit }}"
- id: fzf-macos-arm binary: fzf goos: - darwin goarch: - arm64 ldflags: - "-s -w -X main.version={{ .Version }} -X main.revision={{ .ShortCommit }}" hooks: 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 '
- id: fzf - goos: goos: - linux - windows - freebsd - openbsd18 unmodified lines goarch: arm64
archives: - name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}" builds: - fzf format: tar.gz format_overrides: - goos: windows format: zip files: - non-existent*
signs: - id: fzf-macos-sign ids: [fzf-macos] artifacts: all cmd: sh args: - "-c" - |- cat > /tmp/fzf-gon-amd64.hcl << EOF source = ["./dist/fzf-macos_darwin_amd64/fzf"] bundle_id = "kr.junegunn.fzf" apple_id { username = "junegunn.c@gmail.com" password = "@env:AC_PASSWORD" } 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-sign ids: [fzf-macos-arm] artifacts: all cmd: sh args: - "-c" - |- cat > /tmp/fzf-gon-arm64.hcl << EOF source = ["./dist/fzf-macos-arm_darwin_arm64/fzf"] bundle_id = "kr.junegunn.fzf" apple_id { username = "junegunn.c@gmail.com" password = "@env:AC_PASSWORD" } 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
release: github: owner: junegunn name: fzf prerelease: auto name_template: '{{ .Tag }}' extra_files: - glob: ./dist/fzf-*darwin*.zip
snapshot: name_template: "{{ .Tag }}-devel"
6 unmodified linesmodified:CHANGELOG.md+1 added
7 unmodified lines8 fzf --preview 'cat {}' --preview-window border-left9 fzf --preview 'cat {}' --preview-window top:border-bottom10 fzf --preview 'cat {}' --preview-window top:border-horizontal11 ```12+- Signed and notarized macOS binaries (thanks to [BACKERS.md](https://github.com/junegunn/junegunn/blob/main/BACKERS.md))13 14 0.26.015 ------16 - Added support for fixed header in preview window1104 unmodified lines