mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-27 01:19:25 +08:00
chore(release): add runtime-only whitelist ZIP packager, harden Windows ZIP extraction, and update install docs
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user