GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — opencode/packages/opencode/src/util/archive.ts at dev · ngbrown/opencode Expand file tree/ Copy patharchive.tsMore file actions 17 lines (14 loc) · 696 Bytes / Copy patharchive.tsFile metadata and controls17 lines (14 loc) · 696 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 import path from "path" import * as Process from "./process" export async function extractZip(zipPath: string, destDir: string) { if (process.platform === "win32") { const winZipPath = path.resolve(zipPath) const winDestDir = path.resolve(destDir) // $global:ProgressPreference suppresses PowerShell's blue progress bar popup const cmd = `$global:ProgressPreference = 'SilentlyContinue'; Expand-Archive -Path '${winZipPath}' -DestinationPath '${winDestDir}' -Force` await Process.run(["powershell", "-NoProfile", "-NonInteractive", "-Command", cmd]) return } await Process.run(["unzip", "-o", "-q", zipPath, "-d", destDir]) } export * as Archive from "./archive" |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |