diff --git a/.ci/create-pkg.sh b/.ci/create-pkg.sh index 4f1baacb..bae223eb 100755 --- a/.ci/create-pkg.sh +++ b/.ci/create-pkg.sh @@ -2,8 +2,10 @@ set -e +export VERSION="${CIRRUS_TAG:-0}" + 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 +pkgbuild --root .ci/pkg --version $VERSION --install-location /usr/local/bin/ --identifier com.github.cirruslabs.tart --sign "Developer ID Installer: Fedor Korotkov (9M2P8L4D89)" "./dist/Tart-$VERSION.pkg" +xcrun notarytool submit "./dist/Tart-$VERSION.pkg" --keychain-profile "notarytool" --wait +xcrun stapler staple "./dist/Tart-$VERSION.pkg" diff --git a/.goreleaser.yml b/.goreleaser.yml index 55303bfb..345453f0 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -28,7 +28,7 @@ archives: release: prerelease: auto extra_files: - - glob: ./dist/Tart.pkg + - glob: ./dist/Tart-{{ .Tag }}.pkg brews: - name: tart