Fix macOS notarization (#3061)

This commit is contained in:
Wojtek Mach 2025-09-12 10:37:51 +02:00 committed by GitHub
parent 95b4b3fddb
commit 5ebe645d62
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 17 additions and 1 deletions

View file

@ -13,7 +13,17 @@ if [ -n "$identity" ]; then
files=`find $app_dir -perm +111 -type f -exec sh -c "file {} | grep --silent Mach-O" \; -print`
files="$files `find $app_dir -name '*.a'`"
files="$files $app_dir/Contents/MacOS/$app_name"
codesign --sign="$identity" --options=runtime --entitlements=App.entitlements --force --timestamp --verbose=2 $files
codesign \
--sign="$identity" \
--options=runtime \
--entitlements=App.entitlements \
--force \
--timestamp \
--verbose=4 \
$files
codesign --verify --verbose=4 "${app_dir}"
else
echo "[warning] skipping codesign. Please set ELIXIRKIT_CODESIGN_IDENTITY environment variable"
fi
@ -33,6 +43,8 @@ if [ -n "$team_id" ]; then
--progress \
--wait \
$dmg_path
spctl -a -t exec -vvv "$app_dir"
else
echo "[warning] skipping notarization. Please set ELIXIRKIT_NOTARY_{TEAM_ID,APPLE_ID,PASSWORD} environment variables"
fi

View file

@ -73,5 +73,9 @@
<string>Allow microphone access for Elixir code</string>
<key>NSCameraUsageDescription</key>
<string>Allow camera access for Elixir code</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>LSMinimumSystemVersion</key>
<string>11.0</string>
</dict>
</plist>