Use entitlements file when codesigning for macOS

This commit is contained in:
Micah Lee 2018-11-25 15:14:29 -08:00
parent af637bc697
commit dac480f212
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -25,7 +25,7 @@ if [ "$1" = "--release" ]; then
IDENTITY_NAME_INSTALLER="Developer ID Installer: Micah Lee"
echo "Codesigning the app bundle"
codesign --deep -s "$IDENTITY_NAME_APPLICATION" "$APP_PATH"
codesign --deep -s "$IDENTITY_NAME_APPLICATION" "$APP_PATH" --entitlements "$ROOT/install/OnionShare.entitlements"
echo "Creating an installer"
productbuild --sign "$IDENTITY_NAME_INSTALLER" --component "$APP_PATH" /Applications "$PKG_PATH"