summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2023-04-27 19:51:05 +0200
committerGitHub <noreply@github.com>2023-04-27 19:51:05 +0200
commit97bbe6f174245251d16b4c41537cab41b03b795b (patch)
tree2a7500cd148e5c30028fef2922653e06fa277b74 /bin
parent99aa6cc0092b25bc89411845cc59969df5249b19 (diff)
macOS: notary update (#2237)
Authored-by: rejbasket
Diffstat (limited to 'bin')
-rw-r--r--[-rwxr-xr-x]bin/build-distribution-archives20
1 files changed, 14 insertions, 6 deletions
diff --git a/bin/build-distribution-archives b/bin/build-distribution-archives
index 48660777..a79ad641 100755..100644
--- 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" \