Skip to content

Commit

Permalink
scripts: modify code signing for notarization process
Browse files Browse the repository at this point in the history
  • Loading branch information
JakaKokosar committed Jan 3, 2020
1 parent ffd61a3 commit b60d8db
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions scripts/macos/sign-dmg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ mkdir "${MOUNT}"
hdiutil attach "${IMGRW}".sparsebundle -readwrite -noverify -noautoopen \
-mountpoint "${MOUNT}"

codesign --sign "${IDENTITY}" --deep --verbose "${MOUNT}"/*.app
# sign app bundle
codesign --verbose --deep --options=runtime --sign "${IDENTITY}" "${MOUNT}"/*.app

# sanity check
codesign --verify -vvv --deep --strict "${MOUNT}"/*.app/

# detach/unmount to sync
hdiutil detach "${MOUNT}" -force
Expand All @@ -90,7 +94,9 @@ hdiutil resize -sectors min "${IMGRW}".sparsebundle
# convert back to compressed read only image
hdiutil convert -format UDZO -imagekey zlib-level=9 \
-o "${IMG}" "${IMGRW}.sparsebundle"
codesign -s "${IDENTITY}" "${IMG}"

codesign --force -s "${IDENTITY}" "${IMG}"
codesign --verify -vvv --deep --strict "${IMG}"

if [ ! "${OUTPUT}" ]; then
OUTPUT=${DMG}.signed
Expand Down

0 comments on commit b60d8db

Please sign in to comment.