mirror of
https://github.com/ninxsoft/Mist.git
synced 2025-05-20 10:15:23 -04:00
Fix ISO unmounting for macOS betas
This commit is contained in:
parent
d074db20ea
commit
5491ae6cf5
1 changed files with 13 additions and 1 deletions
|
@ -406,7 +406,19 @@ class TaskManager: ObservableObject {
|
|||
try await InstallMediaCreator.create(createInstallMediaURL, mountPoint: installer.temporaryISOMountPointURL)
|
||||
},
|
||||
MistTask(type: .unmount, description: "temporary Disk Image") {
|
||||
try await DiskImageUnmounter.unmount(installer.temporaryISOMountPointURL)
|
||||
if FileManager.default.fileExists(atPath: installer.temporaryISOMountPointURL.path) {
|
||||
try await DiskImageUnmounter.unmount(installer.temporaryISOMountPointURL)
|
||||
}
|
||||
|
||||
guard let major: Substring = installer.version.split(separator: ".").first else {
|
||||
return
|
||||
}
|
||||
|
||||
let url: URL = URL(fileURLWithPath: "/Volumes/Install macOS \(major) beta")
|
||||
|
||||
if FileManager.default.fileExists(atPath: url.path) {
|
||||
try await DiskImageUnmounter.unmount(url)
|
||||
}
|
||||
},
|
||||
MistTask(type: .convert, description: "temporary Disk Image to ISO") {
|
||||
try await ISOConverter.convert(temporaryImageURL, destination: temporaryCDRURL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue