fix(ci): skip macOS codesign verify without identity

This commit is contained in:
Shantur Rathore
2026-02-24 08:53:14 +00:00
parent 0368fe8248
commit 8607fab5b5

View File

@@ -114,6 +114,13 @@ jobs:
set -euo pipefail
shopt -s nullglob
# Dev CI builds typically don't have a macOS signing identity available.
# When no identity is present, electron-builder skips signing and strict verification will fail.
if security find-identity -p codesigning -v | grep -q "0 valid identities found"; then
echo "No valid macOS codesigning identity found; skipping codesign verification"
exit 0
fi
tmp_dir=$(mktemp -d)
trap 'rm -rf "$tmp_dir"' EXIT