Skip to content

Commit

Permalink
Add output message for incompatible ISOs on Catalina and older (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
ninxsoft committed May 20, 2023
1 parent 358d10b commit 6be312e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Mist/Commands/Download/DownloadInstallerCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ struct DownloadInstallerCommand: ParsableCommand {
}

!options.quiet ? PrettyPrint.print("Found [\(product.identifier)] \(product.name) \(product.version) (\(product.build)) [\(product.date)]", noAnsi: options.noAnsi) : Mist.noop()

if let architecture: String = Hardware.architecture {

guard !(!product.bigSurOrNewer && options.outputType.contains(.iso) && architecture.contains("arm")) else {
!options.quiet ? PrettyPrint.print("macOS Catalina 10.15 and older cannot generate Bootable Disk Images on Apple Silicon Macs...", noAnsi: options.noAnsi) : Mist.noop()
!options.quiet ? PrettyPrint.print("Replace 'iso' with another output type or select a newer version of macOS, exiting...", noAnsi: options.noAnsi, prefix: .ending) : Mist.noop()
return
}
}

try verifyExistingFiles(product, options: options)
try setup(product, options: options)
try verifyFreeSpace(product, options: options)
Expand Down

0 comments on commit 6be312e

Please sign in to comment.