fix: handle cold dev startup and versioned dependency removal

This commit is contained in:
whyour committed 2026-11-21 13:33:39 +08:00
1 parent a65d56a980
commit 0841e4e134
6 files changed
+211 -17

No files matched your search

+2 -2
View File
@@ -315,7 +315,7 @@ export default class DependenceService {
}
const linuxCommand = LINUX_DEPENDENCE_COMMAND[osType];
depInstallCommand = `${linuxCommand.install} ${doc.name.trim()}`;
depUnInstallCommand = `${linuxCommand.uninstall} ${doc.name.trim()}`;
depUnInstallCommand = getUninstallCommand(doc.type, doc.name, osType);
}
const pids = await Promise.all([
getPid(depInstallCommand),
@@ -442,7 +442,7 @@ export default class DependenceService {
if (isLinuxDependence) {
command = isInstall
? `${linuxCommand.install} ${depName.trim()}`
: `${linuxCommand.uninstall} ${depName.trim()}`;
: getUninstallCommand(dependency.type, depName, osType);
}
const startTime = dayjs();