Code sign Mach O files manually

Fix typo
Add MacOS Output and Temp folders to GitIgnore
This commit is contained in:
Aaron Murgatroyd 2024-11-09 13:26:23 +10:00
parent 2a23000fed
commit 0562266de5
2 changed files with 7 additions and 2 deletions

4
.gitignore vendored
View file

@ -175,3 +175,7 @@ PublishProfiles/
# Glade backup files # Glade backup files
*.glade~ *.glade~
# Distribution for MACOS Files
distribution/macos/temp/*
distribution/macos/output/*

View file

@ -42,9 +42,10 @@ then
fi fi
# cargo install apple-codesign # cargo install apple-codesign
echo "Usign rcodesign for ad-hoc signing" echo "Using rcodesign for ad-hoc signing"
rcodesign sign --entitlements-xml-path "$ENTITLEMENTS_FILE_PATH" "$APP_BUNDLE_DIRECTORY" rcodesign sign --entitlements-xml-path "$ENTITLEMENTS_FILE_PATH" "$APP_BUNDLE_DIRECTORY"
else else
echo "Usign codesign for ad-hoc signing" echo "Using codesign for ad-hoc signing"
find "$APP_BUNDLE_DIRECTORY" -name "*.dylib" -exec codesign -f -s - {} \;
codesign --entitlements "$ENTITLEMENTS_FILE_PATH" -f -s - "$APP_BUNDLE_DIRECTORY" codesign --entitlements "$ENTITLEMENTS_FILE_PATH" -f -s - "$APP_BUNDLE_DIRECTORY"
fi fi