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,13 +163,18 @@ class TaskManager: ObservableObject {
|
||||||
(
|
(
|
||||||
section: .download,
|
section: .download,
|
||||||
tasks: try downloadTasks(for: installer, cacheDirectory: cacheDirectoryURL, retries: retries, delay: retryDelay)
|
tasks: try downloadTasks(for: installer, cacheDirectory: cacheDirectoryURL, retries: retries, delay: retryDelay)
|
||||||
),
|
|
||||||
(
|
|
||||||
section: .setup,
|
|
||||||
tasks: installTasks(for: installer, temporaryDirectory: temporaryDirectoryURL, mountPoint: mountPointURL, cacheDirectory: cacheDirectory)
|
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if !installer.bigSurOrNewer || exports != [.package] {
|
||||||
|
taskGroups += [
|
||||||
|
(
|
||||||
|
section: .setup,
|
||||||
|
tasks: installTasks(for: installer, temporaryDirectory: temporaryDirectoryURL, mountPoint: mountPointURL, cacheDirectory: cacheDirectory)
|
||||||
|
)
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
if exports.contains(.application) {
|
if exports.contains(.application) {
|
||||||
taskGroups += [
|
taskGroups += [
|
||||||
(
|
(
|
||||||
|
@ -208,12 +213,14 @@ class TaskManager: ObservableObject {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
taskGroups += [
|
if !installer.bigSurOrNewer || exports != [.package] {
|
||||||
(
|
taskGroups += [
|
||||||
section: .cleanup,
|
(
|
||||||
tasks: cleanupTasks(mountPoint: mountPointURL, temporaryDirectory: temporaryDirectoryURL, cacheDownloads: cacheDownloads, cacheDirectory: cacheDirectoryURL)
|
section: .cleanup,
|
||||||
)
|
tasks: cleanupTasks(mountPoint: mountPointURL, temporaryDirectory: temporaryDirectoryURL, cacheDownloads: cacheDownloads, cacheDirectory: cacheDirectoryURL)
|
||||||
]
|
)
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
return taskGroups
|
return taskGroups
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue