Skip to content

Commit

Permalink
preserve entitlement in codesign
Browse files Browse the repository at this point in the history
  • Loading branch information
LEOYoon-Tsaw committed May 15, 2024
1 parent a6a3b8f commit 36905ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/sign.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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";

0 comments on commit 36905ed

Please sign in to comment.