mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-27 22:06:38 +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=`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 `find $app_dir -name '*.a'`"
|
||||||
files="$files $app_dir/Contents/MacOS/$app_name"
|
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
|
else
|
||||||
echo "[warning] skipping codesign. Please set ELIXIRKIT_CODESIGN_IDENTITY environment variable"
|
echo "[warning] skipping codesign. Please set ELIXIRKIT_CODESIGN_IDENTITY environment variable"
|
||||||
fi
|
fi
|
||||||
|
|
@ -33,6 +43,8 @@ if [ -n "$team_id" ]; then
|
||||||
--progress \
|
--progress \
|
||||||
--wait \
|
--wait \
|
||||||
$dmg_path
|
$dmg_path
|
||||||
|
|
||||||
|
spctl -a -t exec -vvv "$app_dir"
|
||||||
else
|
else
|
||||||
echo "[warning] skipping notarization. Please set ELIXIRKIT_NOTARY_{TEAM_ID,APPLE_ID,PASSWORD} environment variables"
|
echo "[warning] skipping notarization. Please set ELIXIRKIT_NOTARY_{TEAM_ID,APPLE_ID,PASSWORD} environment variables"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -73,5 +73,9 @@
|
||||||
<string>Allow microphone access for Elixir code</string>
|
<string>Allow microphone access for Elixir code</string>
|
||||||
<key>NSCameraUsageDescription</key>
|
<key>NSCameraUsageDescription</key>
|
||||||
<string>Allow camera access for Elixir code</string>
|
<string>Allow camera access for Elixir code</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>APPL</string>
|
||||||
|
<key>LSMinimumSystemVersion</key>
|
||||||
|
<string>11.0</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue