mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-29 23:20:03 +03:00
Merge PR #130.
This commit is contained in:
commit
01e88897f3
@ -71,6 +71,16 @@ 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 Directory(arm64exe).exists()) {
|
||||||
|
exe = arm64exe;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_log.info('Starting Helper subprocess: $exe');
|
_log.info('Starting Helper subprocess: $exe');
|
||||||
|
Loading…
Reference in New Issue
Block a user