diff --git a/.ci/create-pkg.sh b/.ci/create-pkg.sh new file mode 100755 index 0000000..4f1baac --- /dev/null +++ b/.ci/create-pkg.sh @@ -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 diff --git a/.goreleaser.yml b/.goreleaser.yml index 1d9e484..55303bf 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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