Skip to content

Commit 086225d

Browse files
remove existing signatures
1 parent 1d761ea commit 086225d

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

dist/sign-app-bundle.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ SIGNING_IDENTITY="$3"
1212
# remove any metadata from the app bundle
1313
xattr -cr "$APP_BUNDLE_PATH"
1414

15+
# remove any existing code signature
16+
find "$APP_BUNDLE_PATH" -name "_CodeSignature" -type d -exec rm -rf {} +
17+
find "$APP_BUNDLE_PATH" -name ".DS_Store" -delete
18+
1519
if [ -z "$SIGNING_IDENTITY" ]; then
1620
# get the signing identity that matches Developer ID Application
1721
SIGNING_IDENTITY=$(security find-identity -p codesigning -v | grep "Developer ID Application" | awk -F'"' '{print $2}' | head -n 1)

src/sign-app-bundle.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ SIGNING_IDENTITY="$3"
1212
# remove any metadata from the app bundle
1313
xattr -cr "$APP_BUNDLE_PATH"
1414

15+
# remove any existing code signature
16+
find "$APP_BUNDLE_PATH" -name "_CodeSignature" -type d -exec rm -rf {} +
17+
find "$APP_BUNDLE_PATH" -name ".DS_Store" -delete
18+
1519
if [ -z "$SIGNING_IDENTITY" ]; then
1620
# get the signing identity that matches Developer ID Application
1721
SIGNING_IDENTITY=$(security find-identity -p codesigning -v | grep "Developer ID Application" | awk -F'"' '{print $2}' | head -n 1)

0 commit comments

Comments
 (0)