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
+1
View File
@@ -8,6 +8,7 @@
"css-select": "^5.2.2",
"css-tree": "^3.2.1",
"domutils": "^3.2.2",
"extract-zip": "^2.0.1",
"htmlparser2": "^10.0.0",
"marked": "^16.4.2",
},
+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;
}
+1
View File
@@ -71,6 +71,7 @@
"css-select": "^5.2.2",
"css-tree": "^3.2.1",
"domutils": "^3.2.2",
"extract-zip": "^2.0.1",
"htmlparser2": "^10.0.0",
"marked": "^16.4.2"
},