reformat build hook file

[skip ci]
This commit is contained in:
Henry Hiles 2026-08-08 20:31:09 -04:00
commit b011cc2166
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -29,6 +29,7 @@ Future<void> main(List<String> args) => build(args, (input, output) async {
iosSdk = iosConfig.targetSdk;
final minVersion = iosConfig.targetVersion;
iosSdkPath = await getXCodeTool(sdkType: iosSdk.type);
final archTriple = switch (targetArch) {
Architecture.arm64 => "arm64",
Architecture.x64 => "x86_64",
@ -36,6 +37,7 @@ Future<void> main(List<String> args) => build(args, (input, output) async {
"Unsupported iOS architecture: $targetArch",
),
};
iosTargetTriple = iosSdk == IOSSdk.iPhoneSimulator
? "$archTriple-apple-ios$minVersion.0-simulator"
: "$archTriple-apple-ios$minVersion.0";
@ -48,9 +50,7 @@ Future<void> main(List<String> args) => build(args, (input, output) async {
break;
case OS.macOS:
libFileName = "libgomuks.dylib";
extraEnv = {"SDKROOT": await getXCodeTool()};
break;
case OS.windows:
libFileName = "libgomuks.dll";