Bump Apple Silicon build to macOS 12+

Latest Xcode has broken macOS 11 on ARM, and I can't find a workaround

https://forums.ankiweb.net/t/can-t-open-anki-after-download/36938/14
This commit is contained in:
Damien Elmes 2023-11-14 11:19:11 +10:00
parent f2fba6f9e8
commit 9cd4f04677

View file

@ -58,7 +58,13 @@ impl DistKind {
fn macos_min(&self) -> &str {
match self {
DistKind::Standard => "11",
DistKind::Standard => {
if env::var("MAC_X86").is_ok() {
"11"
} else {
"12"
}
}
DistKind::Alternate => "10.13.4",
}
}