From 6be312eee525938c22f193131ff79146f57c0fb8 Mon Sep 17 00:00:00 2001 From: Nindi Gill Date: Sat, 20 May 2023 19:34:18 +1000 Subject: [PATCH] Add output message for incompatible ISOs on Catalina and older (#133) --- Mist/Commands/Download/DownloadInstallerCommand.swift | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Mist/Commands/Download/DownloadInstallerCommand.swift b/Mist/Commands/Download/DownloadInstallerCommand.swift index 4dcedec..4e3f455 100644 --- a/Mist/Commands/Download/DownloadInstallerCommand.swift +++ b/Mist/Commands/Download/DownloadInstallerCommand.swift @@ -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)