fix: Improve macOS support
This commit is contained in:
9
.github/workflows/electron-build.yml
vendored
9
.github/workflows/electron-build.yml
vendored
@@ -175,11 +175,18 @@ jobs:
|
|||||||
|
|
||||||
# Get signing identity
|
# Get signing identity
|
||||||
APP_IDENTITY=$(security find-identity -v -p codesigning $RUNNER_TEMP/app-signing.keychain-db | grep "Apple Distribution" | head -1 | cut -d'"' -f2)
|
APP_IDENTITY=$(security find-identity -v -p codesigning $RUNNER_TEMP/app-signing.keychain-db | grep "Apple Distribution" | head -1 | cut -d'"' -f2)
|
||||||
INSTALLER_IDENTITY=$(security find-identity -v -p codesigning $RUNNER_TEMP/app-signing.keychain-db | grep "Mac Installer Distribution" | head -1 | cut -d'"' -f2)
|
INSTALLER_IDENTITY=$(security find-identity -v -p codesigning $RUNNER_TEMP/app-signing.keychain-db | grep "Installer" | head -1 | cut -d'"' -f2)
|
||||||
|
|
||||||
echo "Using app identity: $APP_IDENTITY"
|
echo "Using app identity: $APP_IDENTITY"
|
||||||
echo "Using installer identity: $INSTALLER_IDENTITY"
|
echo "Using installer identity: $INSTALLER_IDENTITY"
|
||||||
|
|
||||||
|
if [ -z "$INSTALLER_IDENTITY" ]; then
|
||||||
|
echo "Available identities:"
|
||||||
|
security find-identity -v -p codesigning $RUNNER_TEMP/app-signing.keychain-db
|
||||||
|
echo "Error: Could not find installer identity"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Sign helper apps first
|
# Sign helper apps first
|
||||||
codesign --force --sign "$APP_IDENTITY" \
|
codesign --force --sign "$APP_IDENTITY" \
|
||||||
--entitlements "build/entitlements.mas.inherit.plist" \
|
--entitlements "build/entitlements.mas.inherit.plist" \
|
||||||
|
|||||||
Reference in New Issue
Block a user