fix(tools): recover interrupted managed installs
Persist atomic promotion state beside each managed tool, restore usable backups after interrupted renames, and retain precise recovery failures. Verify installed executable hashes from the staged manifest record and make cleanup diagnostics unable to strand repair single-flight state.
This commit is contained in:
+2
-1
@@ -397,7 +397,8 @@ function getManagedToolInstaller(toolId: 'streamlink' | 'ffmpeg'): ManagedToolIn
|
||||
if (!await extractZip(archivePath, destinationPath)) {
|
||||
throw new Error('tool archive extraction failed');
|
||||
}
|
||||
}
|
||||
},
|
||||
diagnostic: (message, details) => _appendDebugLog(message, details)
|
||||
});
|
||||
managedToolInstallers.set(toolId, installer);
|
||||
return installer;
|
||||
|
||||
Reference in New Issue
Block a user