Skip to content

Commit

Permalink
improve codesign
Browse files Browse the repository at this point in the history
  • Loading branch information
LEOYoon-Tsaw committed May 18, 2024
1 parent ac09456 commit e57c952
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions package/sign.bash
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
appDir="build/Release/Squirrel.app"
entitlement="resources/Squirrel.entitlements"

allFiles=$(find "$appDir" -print)
for file in $allFiles; do
if ! [[ -d "$file" ]]; then
if [[ -x "$file" ]]; then
echo "$file"
codesign --force --entitlements "$entitlement" --options runtime --timestamp --sign "Developer ID Application: $1" "$file";
fi;
fi;
done;

codesign -d --entitlements --entitlements "$entitlement" --force --options runtime --timestamp --sign "Developer ID Application: $1" "$appDir";
codesign --deep --force --options runtime --timestamp --sign "Developer ID Application: $1" --entitlements "$entitlement" --verbose "$appDir";

spctl -a -vv "$appDir";

0 comments on commit e57c952

Please sign in to comment.