This commit is contained in:
Dain Nilsson 2022-05-23 13:54:08 +02:00
commit 01e88897f3
No known key found for this signature in database
GPG Key ID: F04367096FBA95E8

View File

@ -71,6 +71,16 @@ Future<Widget> initialize(List<String> argv) async {
exe = Uri.file(Platform.resolvedExecutable)
.resolve(relativePath)
.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 Directory(arm64exe).exists()) {
exe = arm64exe;
}
}
}
_log.info('Starting Helper subprocess: $exe');