From a73e1743a48173f8ba5999a23af73bbdd4b84d30 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Sat, 18 Jan 2025 13:22:10 -0300 Subject: [PATCH] ci: update goreleaser configs see https://github.com/goreleaser/goreleaser/issues/5460 --- .goreleaser.yml | 38 ++++++++++++++++++++++++++------------ 1 file changed, 26 insertions(+), 12 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 85ce0d12..cd46d222 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,4 +1,7 @@ +# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json + project_name: tart +version: 2 before: hooks: @@ -15,27 +18,38 @@ builds: goarch: - arm64 - amd64 - binary: tart.app/Contents/MacOS/tart + binary: tart prebuilt: path: '.build/{{- if eq .Arch "arm64" }}arm64{{- else }}x86_64{{ end }}-apple-macosx/release/tart' universal_binaries: - replace: true - hooks: - post: gon gon.hcl + +notarize: + macos: + - enabled: '{{ isEnvSet "MACOS_SIGN_P12" }}' + sign: + certificate: "{{.Env.MACOS_SIGN_P12}}" + password: "{{.Env.MACOS_SIGN_PASSWORD}}" + entitlements: ./Resources/tart-{{ if or .IsSnapshot .IsNightly }}dev{{ else }}prod{{ end }}.entitlements + notarize: + issuer_id: "{{.Env.MACOS_NOTARY_ISSUER_ID}}" + key_id: "{{.Env.MACOS_NOTARY_KEY_ID}}" + key: "{{.Env.MACOS_NOTARY_KEY}}" + +app_bundles: + - name: tart + extra_files: + - src: ./Resources/Info.plist + dst: Contents/Info.plist + - src: ./Resources/embedded.provisionprofile + dst: Contents/embedded.provisionprofile + - src: ./Resources/AppIcon.png + dst: Contents/Resources/AppIcon.png archives: - name_template: "{{ .ProjectName }}" files: - - src: Resources/embedded.provisionprofile - dst: tart.app/Contents - strip_parent: true - - src: Resources/Info.plist - dst: tart.app/Contents - strip_parent: true - - src: Resources/AppIcon.png - dst: tart.app/Contents/Resources - strip_parent: true - LICENSE release: