mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2025-01-03 15:47:52 +03:00
Remove arm64 helper signing and loading.
This commit is contained in:
parent
300d743cda
commit
a39f830da5
@ -154,16 +154,6 @@ Future<Widget> initialize(List<String> argv) async {
|
|||||||
exe = Uri.file(Platform.resolvedExecutable)
|
exe = Uri.file(Platform.resolvedExecutable)
|
||||||
.resolve(relativePath)
|
.resolve(relativePath)
|
||||||
.toFilePath();
|
.toFilePath();
|
||||||
|
|
||||||
if (Platform.isMacOS && Platform.version.contains('arm64')) {
|
|
||||||
// See if there is an arm64 specific helper on arm64 Mac.
|
|
||||||
final arm64exe = Uri.file(exe)
|
|
||||||
.resolve('../helper-arm64/authenticator-helper')
|
|
||||||
.toFilePath();
|
|
||||||
if (await File(arm64exe).exists()) {
|
|
||||||
exe = arm64exe;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
final rpcFuture = _initHelper(exe!);
|
final rpcFuture = _initHelper(exe!);
|
||||||
|
@ -17,7 +17,6 @@ then
|
|||||||
echo
|
echo
|
||||||
echo "# Sign the main binaries, with the entitlements"
|
echo "# Sign the main binaries, with the entitlements"
|
||||||
codesign -f --timestamp --options runtime --entitlements helper.entitlements --sign 'Application' Yubico\ Authenticator.app/Contents/Resources/helper/authenticator-helper
|
codesign -f --timestamp --options runtime --entitlements helper.entitlements --sign 'Application' Yubico\ Authenticator.app/Contents/Resources/helper/authenticator-helper
|
||||||
codesign -f --timestamp --options runtime --entitlements helper.entitlements --sign 'Application' Yubico\ Authenticator.app/Contents/Resources/helper-arm64/authenticator-helper
|
|
||||||
else
|
else
|
||||||
echo "#################"
|
echo "#################"
|
||||||
echo "# No parameters given, this will be app store"
|
echo "# No parameters given, this will be app store"
|
||||||
@ -25,18 +24,15 @@ else
|
|||||||
echo
|
echo
|
||||||
echo "# Sign the main binaries, with sandbox enabled, without hardened runtime"
|
echo "# Sign the main binaries, with sandbox enabled, without hardened runtime"
|
||||||
codesign -f --timestamp --entitlements helper-sandbox.entitlements --sign 'Application' Yubico\ Authenticator.app/Contents/Resources/helper/authenticator-helper
|
codesign -f --timestamp --entitlements helper-sandbox.entitlements --sign 'Application' Yubico\ Authenticator.app/Contents/Resources/helper/authenticator-helper
|
||||||
codesign -f --timestamp --entitlements helper-sandbox.entitlements --sign 'Application' Yubico\ Authenticator.app/Contents/Resources/helper-arm64/authenticator-helper
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "# Sign the dylib and so files, without entitlements"
|
echo "# Sign the dylib and so files, without entitlements"
|
||||||
cd Yubico\ Authenticator.app/
|
cd Yubico\ Authenticator.app/
|
||||||
codesign -f --timestamp --options runtime --sign 'Application' $(find Contents/Resources/helper/ -name "*.dylib" -o -name "*.so")
|
codesign -f --timestamp --options runtime --sign 'Application' $(find Contents/Resources/helper/_internal/ -name "*.dylib" -o -name "*.so")
|
||||||
codesign -f --timestamp --options runtime --sign 'Application' $(find Contents/Resources/helper-arm64/ -name "*.dylib" -o -name "*.so")
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
echo "# Sign the Python binary (if it exists), without entitlements"
|
echo "# Sign the Python binary (if it exists), without entitlements"
|
||||||
codesign -f --timestamp --options runtime --sign 'Application' Yubico\ Authenticator.app/Contents/Resources/helper-arm64/Python
|
codesign -f --timestamp --options runtime --sign 'Application' Yubico\ Authenticator.app/Contents/Resources/helper/_internal/Python
|
||||||
codesign -f --timestamp --options runtime --sign 'Application' Yubico\ Authenticator.app/Contents/Resources/helper/Python
|
|
||||||
|
|
||||||
echo "# Sign the GUI"
|
echo "# Sign the GUI"
|
||||||
codesign -f --timestamp --options runtime --sign 'Application' --entitlements Release.entitlements --deep "Yubico Authenticator.app"
|
codesign -f --timestamp --options runtime --sign 'Application' --entitlements Release.entitlements --deep "Yubico Authenticator.app"
|
||||||
|
Loading…
Reference in New Issue
Block a user