mirror of
https://github.com/ninxsoft/Mist.git
synced 2025-05-28 14:04:49 -04:00
Skip setup + teardown for macOS 11+ packages
This commit is contained in:
parent
91f7f7f454
commit
378734c0ab
1 changed files with 17 additions and 10 deletions
|
@ -163,12 +163,17 @@ class TaskManager: ObservableObject {
|
|||
(
|
||||
section: .download,
|
||||
tasks: try downloadTasks(for: installer, cacheDirectory: cacheDirectoryURL, retries: retries, delay: retryDelay)
|
||||
),
|
||||
)
|
||||
]
|
||||
|
||||
if !installer.bigSurOrNewer || exports != [.package] {
|
||||
taskGroups += [
|
||||
(
|
||||
section: .setup,
|
||||
tasks: installTasks(for: installer, temporaryDirectory: temporaryDirectoryURL, mountPoint: mountPointURL, cacheDirectory: cacheDirectory)
|
||||
)
|
||||
]
|
||||
}
|
||||
|
||||
if exports.contains(.application) {
|
||||
taskGroups += [
|
||||
|
@ -208,12 +213,14 @@ class TaskManager: ObservableObject {
|
|||
]
|
||||
}
|
||||
|
||||
if !installer.bigSurOrNewer || exports != [.package] {
|
||||
taskGroups += [
|
||||
(
|
||||
section: .cleanup,
|
||||
tasks: cleanupTasks(mountPoint: mountPointURL, temporaryDirectory: temporaryDirectoryURL, cacheDownloads: cacheDownloads, cacheDirectory: cacheDirectoryURL)
|
||||
)
|
||||
]
|
||||
}
|
||||
|
||||
return taskGroups
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue