Create Apple Installer in dist folder (#217)

Seems goreleaser reset git state before submitting and therefore removes Tart.pkg
This commit is contained in:
Fedor Korotkov
2022-09-01 18:04:43 +04:00
committed by GitHub
parent 2eea51d6ec
commit 8a2b0151e0
2 changed files with 13 additions and 8 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
set -e
mkdir -p .ci/pkg/
cp .build/arm64-apple-macosx/debug/tart .ci/pkg/
pkgbuild --root .ci/pkg --version "${CIRRUS_TAG:-0}" --install-location /usr/local/bin/ --identifier com.github.cirruslabs.tart --sign "Developer ID Installer: Fedor Korotkov (9M2P8L4D89)" ./dist/Tart.pkg
xcrun notarytool submit ./dist/Tart.pkg --keychain-profile "notarytool" --wait
xcrun stapler staple ./dist/Tart.pkg
+4 -8
View File
@@ -9,13 +9,9 @@ builds:
prebuilt:
path: .build/arm64-apple-macosx/debug/tart
hooks:
post: |
gon gon.hcl
mkdir -p .ci/pkg/
cp .build/arm64-apple-macosx/debug/tart .ci/pkg/
pkgbuild --root .ci/pkg --version "${CIRRUS_TAG:-0}" --install-location /usr/local/bin/ --identifier com.github.cirruslabs.tart --sign "Developer ID Installer: Fedor Korotkov (9M2P8L4D89)" Tart.pkg
xcrun notarytool submit Tart.pkg --keychain-profile "notarytool" --wait
xcrun stapler staple Tart.pkg
post:
- gon gon.hcl
- .ci/create-pkg.sh
before:
hooks:
@@ -32,7 +28,7 @@ archives:
release:
prerelease: auto
extra_files:
- glob: Tart.pkg
- glob: ./dist/Tart.pkg
brews:
- name: tart