Skip to content

Commit

Permalink
fixed makeRelease on win32
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-Symbroson committed Mar 2, 2024
1 parent 2bc7087 commit 27e4cbd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ node_modules/
/files/generate_dsuikit.js
files/test/
files/samples?*/
files/*.zip

/out/
/app/
Expand All @@ -24,4 +25,3 @@ samples*.txt
*.key
*-test*
*.ppk
*.zip
4 changes: 2 additions & 2 deletions files/makeRelease.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ try {
const cwd = process.cwd();
process.chdir(directoryToZip);
if (process.platform === "win32") {
const command = `Compress-Archive -Path "*" -DestinationPath "${cwd}/file.zip"`;
execSync(`powershell -Command "${command}"`);
const command = `"C:\\Program Files\\7-Zip\\7z.exe" a "${cwd}\\file.zip" .`;
execSync(command);
} else {
execSync(`zip -r ${cwd}/file.zip .`);
}
Expand Down
2 changes: 1 addition & 1 deletion files/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion files/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-security": "^1.7.1"
}
}
}

0 comments on commit 27e4cbd

Please sign in to comment.