From 97bbe6f174245251d16b4c41537cab41b03b795b Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Thu, 27 Apr 2023 19:51:05 +0200 Subject: macOS: notary update (#2237) Authored-by: rejbasket --- bin/build-distribution-archives | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) mode change 100755 => 100644 bin/build-distribution-archives (limited to 'bin/build-distribution-archives') diff --git a/bin/build-distribution-archives b/bin/build-distribution-archives old mode 100755 new mode 100644 index 48660777..a79ad641 --- a/bin/build-distribution-archives +++ b/bin/build-distribution-archives @@ -64,11 +64,17 @@ if [ "$BUILD" = "osx" ]; then artifacts/inkstitch-${VERSION}-${OS}.pkg if [[ "${GITHUB_REF}" =~ ^refs/tags/v[0-9.]+$ || $NOTARIZE_DEVELOPMENT_BUILDS == true ]]; then echo "Notary starting" - bash bin/notarize-app "929A568N58" \ - "${NOTARY_ACCOUNT}" \ - "${NOTARY_PASSWORD}" \ - "org.inkstitch.app" \ - artifacts/inkstitch-${VERSION}-${OS}.pkg + echo "Adding keychain item for notarytool" + xcrun notarytool store-credentials "inkstitch-profile" \ + --apple-id "${NOTARY_ACCOUNT}" \ + --team-id '929A568N58' \ + --password "${NOTARY_PASSWORD}" + echo "Invoking notary process" + xcrun notarytool submit --wait \ + --keychain-profile "inkstitch-profile" \ + artifacts/inkstitch-${VERSION}-${OS}.pkg + echo "Stapling the pkg for release" + xcrun stapler staple artifacts/inkstitch-${VERSION}-${OS}.pkg fi else # local builds will not be signed or notarized @@ -84,7 +90,7 @@ if [ "$BUILD" = "osx" ]; then fi # Creating the zip for Drag n' Drop install cd dist - python -m zipfile -c ../artifacts/inkstitch-${VERSION}-${OS}.zip * + 7z a ../artifacts/inkstitch-${VERSION}-${OS}.zip * cd .. else cp -a images/examples palettes symbols fonts tiles dbus inx LICENSE VERSION dist/inkstitch @@ -123,6 +129,7 @@ EOF -n inkstitch \ -v "$deb_version" \ -d "inkscape >= 1.0.0" \ + --deb-compression xz \ --license "GPL-3.0" \ --description "An open-source machine embroidery design platform based on Inkscape" \ --url "https://inkstitch.org" \ @@ -137,6 +144,7 @@ EOF -n inkstitch \ -v "$VERSION" \ -d "inkscape >= 1.0.0" \ + --rpm-compression xz \ --license "GPL-3.0" \ --description "An open-source machine embroidery design platform based on Inkscape" \ --url "https://inkstitch.org" \ -- cgit v1.2.3