From 92282dee7465eada4d37e4bef50f050981abd5f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Thu, 23 Apr 2026 07:30:10 +0800 Subject: [PATCH] Fix system extension update error again --- ApplicationLibrary/Service/UpdateManager.swift | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ApplicationLibrary/Service/UpdateManager.swift b/ApplicationLibrary/Service/UpdateManager.swift index 67d4aa8..4c5d0cd 100644 --- a/ApplicationLibrary/Service/UpdateManager.swift +++ b/ApplicationLibrary/Service/UpdateManager.swift @@ -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 {