mirror of
https://github.com/ninxsoft/Mist.git
synced 2025-05-20 10:15:23 -04:00
Add macOS Sierra 10.12 createinstallmedia workaround (#102)
This commit is contained in:
parent
b72c3e29d4
commit
29238d1959
1 changed files with 7 additions and 0 deletions
|
@ -532,6 +532,13 @@ class TaskManager: ObservableObject {
|
||||||
let mountPointURL: URL = URL(fileURLWithPath: volume.path)
|
let mountPointURL: URL = URL(fileURLWithPath: volume.path)
|
||||||
let tasks: [MistTask] = [
|
let tasks: [MistTask] = [
|
||||||
MistTask(type: .create, description: "Bootable Installer") {
|
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)
|
try await InstallMediaCreator.create(createInstallMediaURL, mountPoint: mountPointURL, sierraOrOlder: installer.sierraOrOlder)
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue