sudo xattr -cr "/Applications/NewApp.app"
Подписать приложение
sudo codesign --force --deep --sign - /Applications/NewApp.app
Подписать исполняемый файл
sudo codesign --force --sign - /Applications/NewApp.app/Contents/MacOS/libmyapp.dylib
Подробности
https://wiki.lazarus.freepascal.org/Code_Signing_for_macOS
https://appstorrent.ru/66-signature.html
-------------- PikaTorrent ---------------
sign.sh
#!/bin/bash
set -e
usage() {
echo "Usage: $0 <apple_developer_id_application>"
exit 1
}
APPLE_DEVELOPER_ID_APPLICATION=$1
if [ -z "$1" ]
then
usage
fi
codesign --deep --force --verbose --options runtime --timestamp --sign "$APPLE_DEVELOPER_ID_APPLICATION" build/macos/Build/Products/Release/*.app
find build/macos/Build/Products/Release/*.app -type d -name "*.framework" -exec codesign --force --verbose --options runtime --timestamp --sign "$APPLE_DEVELOPER_ID_APPLICATION" {} \;
find build/macos/Build/Products/Release/*.app -type f -exec codesign --force --verbose --options runtime --timestamp --sign "$APPLE_DEVELOPER_ID_APPLICATION" {} \;
codesign --verify --deep --strict --verbose build/macos/Build/Products/Release/*.app
Комментариев нет:
Отправить комментарий