Skip to content

Commit

Permalink
Try codesign without --deep, which is considered harmful
Browse files Browse the repository at this point in the history
  • Loading branch information
graphemecluster committed Dec 17, 2024
1 parent ce6b43d commit ab6cea8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .ci/package-mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ cp -rf "$SCHEMA_DIR/"* SharedSupport
popd

# Resign the application
codesign --sign "Developer ID Application: $APPLE_DEVELOPER_NAME ($APPLE_DEVELOPER_TEAM_ID)" --timestamp --deep --force --options runtime --preserve-metadata=identifier,entitlements Squirrel.app
for binary in $(codesign -v -vv --deep --strict Squirrel.app | sed -n 's/^--validated://p') Squirrel.app; do
codesign --sign "Developer ID Application: $APPLE_DEVELOPER_NAME ($APPLE_DEVELOPER_TEAM_ID)" --timestamp --force --options runtime --preserve-metadata=identifier,entitlements "$binary"

# Resign the binaries inside the application
codesign --sign "Developer ID Application: $APPLE_DEVELOPER_NAME ($APPLE_DEVELOPER_TEAM_ID)" --timestamp --deep --force --options runtime --preserve-metadata=identifier,entitlements Squirrel.app/Contents/MacOS/*
# Verify
codesign -v -vv --deep --strict "$binary"
done

# Compress back the application
find Squirrel.app | cpio -o | gzip -c > Payload
Expand Down

0 comments on commit ab6cea8

Please sign in to comment.