Skip to content

Commit

Permalink
Add macOS Sierra 10.12 createinstallmedia workaround (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
ninxsoft authored Oct 29, 2023
1 parent b72c3e2 commit 29238d1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Mist/Helpers/TaskManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,13 @@ class TaskManager: ObservableObject {
let mountPointURL: URL = URL(fileURLWithPath: volume.path)
let tasks: [MistTask] = [
MistTask(type: .create, description: "Bootable Installer") {

// Workaround to make macOS Sierra 10.12 createinstallmedia work
if installer.version.hasPrefix("10.12") {
let infoPlistURL: URL = installer.temporaryInstallerURL.appendingPathComponent("/Contents/Info.plist")
try PropertyListUpdater.update(infoPlistURL, key: "CFBundleShortVersionString", value: "12.6.03")
}

try await InstallMediaCreator.create(createInstallMediaURL, mountPoint: mountPointURL, sierraOrOlder: installer.sierraOrOlder)
}
]
Expand Down

0 comments on commit 29238d1

Please sign in to comment.