Compare commits
6
Commits
d40f0052d2
...
43d35515e1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
43d35515e1 | ||
|
|
a110eb81e6 | ||
|
|
65457b903e | ||
|
|
62eb5730a9 | ||
|
|
5379b4a94f | ||
|
|
a2243be298 |
@@ -132,8 +132,11 @@ dmgbuild -s scripts/dmgbuild-settings.py "$VOLUME_NAME" "$DMG"
|
||||
|
||||
echo "DMG: $PWD/$DMG"
|
||||
|
||||
# Optional notarization/stapling when credentials are present.
|
||||
if [ -n "${NOTARIZE_APPLE_ID:-}" ] && \
|
||||
# Notarization requires a Developer ID signature. If the app was ad-hoc
|
||||
# signed or any notarization secret is missing, skip silently — the DMG is
|
||||
# still usable for local/testing installs.
|
||||
if [ -n "${CODESIGN_IDENTITY:-}" ] && [ "$CODESIGN_IDENTITY" != "-" ] && \
|
||||
[ -n "${NOTARIZE_APPLE_ID:-}" ] && \
|
||||
[ -n "${NOTARIZE_PASSWORD:-}" ] && \
|
||||
[ -n "${APPLE_TEAM_ID:-}" ]; then
|
||||
echo "==> Submitting $DMG for notarization"
|
||||
@@ -144,6 +147,4 @@ if [ -n "${NOTARIZE_APPLE_ID:-}" ] && \
|
||||
--wait
|
||||
xcrun stapler staple "$DMG"
|
||||
echo "==> Stapled $DMG"
|
||||
else
|
||||
echo "==> Notarization credentials not set; skipping"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user