Fix system extension update error again
This commit is contained in:
@@ -93,9 +93,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
let authRef = try PKGInstaller.authorize()
|
let authRef = try PKGInstaller.authorize()
|
||||||
try await Task.detached {
|
|
||||||
try PKGInstaller.install(pkgPath: pkgURL.path, authorization: authRef)
|
|
||||||
}.value
|
|
||||||
|
|
||||||
var profile = environments.extensionProfile
|
var profile = environments.extensionProfile
|
||||||
if profile == nil {
|
if profile == nil {
|
||||||
@@ -111,6 +108,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try await Task.detached {
|
||||||
|
try PKGInstaller.install(pkgPath: pkgURL.path, authorization: authRef)
|
||||||
|
}.value
|
||||||
|
|
||||||
do {
|
do {
|
||||||
try PKGInstaller.scheduleInstalledApplicationRelaunch()
|
try PKGInstaller.scheduleInstalledApplicationRelaunch()
|
||||||
} catch {
|
} catch {
|
||||||
|
|||||||
Reference in New Issue
Block a user