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 {