mirror of https://github.com/cirruslabs/tart.git
ci: update goreleaser configs
see https://github.com/goreleaser/goreleaser/issues/5460
This commit is contained in:
parent
72a81ca84a
commit
a73e1743a4
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue