forked from Nexus/nexus
reformat build hook file
[skip ci]
This commit is contained in:
parent
75ad6cbd02
commit
b011cc2166
1 changed files with 2 additions and 2 deletions
|
|
@ -29,6 +29,7 @@ Future<void> main(List<String> args) => build(args, (input, output) async {
|
||||||
iosSdk = iosConfig.targetSdk;
|
iosSdk = iosConfig.targetSdk;
|
||||||
final minVersion = iosConfig.targetVersion;
|
final minVersion = iosConfig.targetVersion;
|
||||||
iosSdkPath = await getXCodeTool(sdkType: iosSdk.type);
|
iosSdkPath = await getXCodeTool(sdkType: iosSdk.type);
|
||||||
|
|
||||||
final archTriple = switch (targetArch) {
|
final archTriple = switch (targetArch) {
|
||||||
Architecture.arm64 => "arm64",
|
Architecture.arm64 => "arm64",
|
||||||
Architecture.x64 => "x86_64",
|
Architecture.x64 => "x86_64",
|
||||||
|
|
@ -36,6 +37,7 @@ Future<void> main(List<String> args) => build(args, (input, output) async {
|
||||||
"Unsupported iOS architecture: $targetArch",
|
"Unsupported iOS architecture: $targetArch",
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
|
|
||||||
iosTargetTriple = iosSdk == IOSSdk.iPhoneSimulator
|
iosTargetTriple = iosSdk == IOSSdk.iPhoneSimulator
|
||||||
? "$archTriple-apple-ios$minVersion.0-simulator"
|
? "$archTriple-apple-ios$minVersion.0-simulator"
|
||||||
: "$archTriple-apple-ios$minVersion.0";
|
: "$archTriple-apple-ios$minVersion.0";
|
||||||
|
|
@ -48,9 +50,7 @@ Future<void> main(List<String> args) => build(args, (input, output) async {
|
||||||
break;
|
break;
|
||||||
case OS.macOS:
|
case OS.macOS:
|
||||||
libFileName = "libgomuks.dylib";
|
libFileName = "libgomuks.dylib";
|
||||||
|
|
||||||
extraEnv = {"SDKROOT": await getXCodeTool()};
|
extraEnv = {"SDKROOT": await getXCodeTool()};
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case OS.windows:
|
case OS.windows:
|
||||||
libFileName = "libgomuks.dll";
|
libFileName = "libgomuks.dll";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue