Skip to content

Commit

Permalink
sign .app bundles that are nested inside the tray.app bundle
Browse files Browse the repository at this point in the history
we need to sign the app bundles inside out, so first all .framework,
.dylib files are signed including the ones inside nested .app bundles
then the nested .app bundles are signed and at the end the crc-tray.app
is signed

without signing the nested .app bundles the notarization of the pkg fails
  • Loading branch information
anjannath authored and praveenkumar committed Jun 23, 2022
1 parent ee02851 commit 5e62797
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packaging/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ function signAppBundle() {

frameworks=$(find "$1"/Contents/Frameworks -depth -type d -name "*.framework" -or -name "*.dylib" -or -type f -perm +111)
echo "${frameworks}" | xargs -t -I % codesign --deep --sign "${CODESIGN_IDENTITY}" --options runtime --timestamp % || true

# sign the .app bundles inside $1/Contents/Frameworks
frameworks=$(find "$1"/Contents/Frameworks -depth -type d -name "*.app" -perm +111)
echo "${frameworks}" | xargs -t -I % codesign --deep --sign "${CODESIGN_IDENTITY}" --options runtime --timestamp --force % || true

# finally sign $1 app bundle
codesign --deep --sign "${CODESIGN_IDENTITY}" --options runtime --timestamp --force --entitlements "${entitlements}" "$1"
}

Expand Down

0 comments on commit 5e62797

Please sign in to comment.