From 02ceea49cd39717f26c2e1117ac4ef07385736fa Mon Sep 17 00:00:00 2001 From: Chris Araman Date: Mon, 1 Nov 2021 21:15:31 -0700 Subject: [PATCH] =?UTF-8?q?=E2=9A=A0=EF=B8=8F=20Add=20a=20temporary=20warn?= =?UTF-8?q?ing=20about=20macOS=20Monterey?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/mas/main.swift | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Sources/mas/main.swift b/Sources/mas/main.swift index e87296080..cb6912dfa 100644 --- a/Sources/mas/main.swift +++ b/Sources/mas/main.swift @@ -7,10 +7,19 @@ // import Commandant +import Foundation import MasKit MasKit.initialize() +let monterey = OperatingSystemVersion(majorVersion: 12, minorVersion: 0, patchVersion: 0) +if ProcessInfo.processInfo.isOperatingSystemAtLeast(monterey) { + printWarning( + "mas is not yet functional on macOS Monterey (12) due to changes in macOS frameworks. " + + "To track progress or to *contribute* to fixing this issue, please see: " + + "https://github.com/mas-cli/mas/issues/417") +} + let registry = CommandRegistry() let helpCommand = HelpCommand(registry: registry)