fix. 插件安装修复

This commit is contained in:
lincube
2026-06-01 01:12:52 +08:00
parent c351a8e7f3
commit a2ac302ee7
18 changed files with 515 additions and 130 deletions

View File

@@ -14,7 +14,7 @@ internal sealed class PluginUpgradeQueueService
_installerService = installerService;
}
public LauncherResult ApplyPendingUpgrades(string pluginsDirectory)
public LauncherResult ApplyPendingUpgrades(string pluginsDirectory, string? appRoot = null)
{
var pendingPath = Path.Combine(pluginsDirectory, PendingUpgradesFileName);
if (!File.Exists(pendingPath))
@@ -43,7 +43,7 @@ internal sealed class PluginUpgradeQueueService
try
{
_installerService.InstallPackage(item.SourcePackagePath, pluginsDirectory);
_installerService.InstallPackage(item.SourcePackagePath, pluginsDirectory, appRoot);
succeeded.Add(item);
}
catch