chore(release): add runtime-only whitelist ZIP packager, harden Windows ZIP extraction, and update install docs

This commit is contained in:
fish
2026-11-19 23:54:33 +09:00
parent 88abdaf56e
commit 4f37b6e2d0
7 changed files with 412 additions and 40 deletions
+1 -1
View File
@@ -494,7 +494,7 @@ export async function performPluginUpdate({ isAuto = false } = {}) {
'-NoProfile',
'-NonInteractive',
'-Command',
`Expand-Archive -LiteralPath '${zipFile.replace(/'/g, "''")}' -DestinationPath '${extractDir.replace(/'/g, "''")}' -Force`,
`Add-Type -AssemblyName System.IO.Compression.FileSystem; [System.IO.Compression.ZipFile]::ExtractToDirectory('${zipFile.replace(/'/g, "''")}', '${extractDir.replace(/'/g, "''")}')`,
]);
} else {
await runExecFile('unzip', ['-oq', zipFile, '-d', extractDir]);