Skip to content

Commit

Permalink
⚠️ Add a temporary warning about macOS Monterey
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-araman committed Nov 3, 2021
1 parent 9305160 commit 02ceea4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Sources/mas/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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<MASError>()
let helpCommand = HelpCommand(registry: registry)

Expand Down

0 comments on commit 02ceea4

Please sign in to comment.