Fix setup.dart error

This commit is contained in:
chen08209
2024-07-18 16:39:28 +08:00
parent 3bc3172723
commit ca946c1b06

View File

@@ -347,7 +347,7 @@ class BuildCommand extends Command {
final currentArches =
arches.where((element) => element.name == archName).toList();
final arch = currentArches.isEmpty ? null : currentArches.first;
if (arch == null && !Platform.isAndroid) {
if (arch == null && platform == PlatformType.windows) {
throw "Invalid arch";
}
await _buildLib(arch);