diff --git a/package/sign.bash b/package/sign.bash index 70b79ccc2..130a2d225 100755 --- a/package/sign.bash +++ b/package/sign.bash @@ -5,11 +5,11 @@ for file in $allFiles; do if ! [[ -d "$file" ]]; then if [[ -x "$file" ]]; then echo "$file" - codesign --force --options runtime --timestamp --sign "Developer ID Application: $1" "$file"; + codesign --force --preserve-metadata=entitlements --options runtime --timestamp --sign "Developer ID Application: $1" "$file"; fi; fi; done; -codesign --force --options runtime --timestamp --sign "Developer ID Application: $1" "$appDir"; +codesign -d --entitlements --preserve-metadata=entitlements --force --options runtime --timestamp --sign "Developer ID Application: $1" "$appDir"; spctl -a -vv "$appDir";