Fix system extension update error again

This commit is contained in:
世界
2026-04-23 07:30:15 +08:00
parent 376f927ccd
commit 92282dee74
@@ -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 {