Fix Windows skill bundle extraction (#198)

This commit is contained in:
Abdul Wahab
2026-06-05 11:16:23 -07:00
committed by GitHub
parent 6c7c04866c
commit 347a0c06a2
3 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -15,6 +15,7 @@ import { fileURLToPath } from 'node:url';
import { get } from 'node:https';
import { createHash } from 'node:crypto';
import { tmpdir, homedir } from 'node:os';
import extract from 'extract-zip';
const __dirname = dirname(fileURLToPath(import.meta.url));
const API_BASE = 'https://impeccable.style';
@@ -116,7 +117,7 @@ async function downloadAndExtractBundle() {
const tmpDir = join(tmpdir(), `impeccable-update-${Date.now()}`);
await downloadFile(`${API_BASE}/api/download/bundle/universal`, tmpZip);
mkdirSync(tmpDir, { recursive: true });
execSync(`unzip -qo "${tmpZip}" -d "${tmpDir}"`, { encoding: 'utf8' });
await extract(tmpZip, { dir: tmpDir });
rmSync(tmpZip, { force: true });
return tmpDir;
}