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