mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-21 19:07:23 +08:00
Fix macOS notarization (#3061)
This commit is contained in:
parent
95b4b3fddb
commit
5ebe645d62
2 changed files with 17 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue