Skip to content

Commit 2dbfdf0

Browse files
Use PowerShell Compress-Archive on Windows for packaging
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent ba7ec82 commit 2dbfdf0

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

scripts/package.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@ async function packageExtension() {
3535
const zipPath = path.join(bundleDir, zipFile);
3636
console.log(`Creating Chrome package: ${zipFile}...`);
3737

38-
execSync(`zip -r "${zipPath}" . -x "*.zip"`, {
38+
const isWindows = process.platform === 'win32';
39+
const cmd = isWindows
40+
? `powershell -Command "Compress-Archive -Path '.\\*' -DestinationPath '${zipPath}' -Force"`
41+
: `zip -r "${zipPath}" . -x "*.zip"`;
42+
43+
execSync(cmd, {
3944
cwd: buildDir,
4045
stdio: 'inherit'
4146
});

0 commit comments

Comments
 (0)