From 9cd4f0467745c0db94080c523ee5e66ad920fd7d Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 14 Nov 2023 11:19:11 +1000 Subject: [PATCH] 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 --- qt/bundle/mac/src/main.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/qt/bundle/mac/src/main.rs b/qt/bundle/mac/src/main.rs index d0d3bcb49..2182d808e 100644 --- a/qt/bundle/mac/src/main.rs +++ b/qt/bundle/mac/src/main.rs @@ -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", } }