From 8a2b0151e0e9689ae2303657438372b9e45739bc Mon Sep 17 00:00:00 2001 From: Fedor Korotkov Date: Thu, 1 Sep 2022 10:04:43 -0400 Subject: [PATCH] Create Apple Installer in dist folder (#217) Seems goreleaser reset git state before submitting and therefore removes Tart.pkg --- .ci/create-pkg.sh | 9 +++++++++ .goreleaser.yml | 12 ++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) create mode 100755 .ci/create-pkg.sh 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