diff --git a/.goreleaser.yml b/.goreleaser.yml index 2326b63d..8ead6872 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,6 +1,8 @@ +# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json version: 2 project_name: tart +version: 2 before: hooks: @@ -17,28 +19,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: - - name_template: tart.app/Contents/MacOS/tart - replace: true - hooks: - post: gon gon.hcl + - replace: true + +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: