Skip to content

Commit

Permalink
build: only compress build/Release folder CSD-55071
Browse files Browse the repository at this point in the history
  • Loading branch information
LichKing-2234 committed Jul 5, 2023
1 parent 611bb95 commit f9cef64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/zipBuild.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
const path = require('path');

const { exec } = require('shelljs');

const logger = require('./logger');
const { getOS } = require('./util');

const zipBuild = async () => {
const isMac = getOS() === 'mac';
const fileListStr = ' build js types package.json';
const fileListStr = ` build${path.sep}Release js types package.json`;
const shellStr =
(isMac ? 'zip -ry electron.zip' : '7z a electron.zip') + fileListStr;
const { code, stderr } = await exec(shellStr);
Expand Down

0 comments on commit f9cef64

Please sign in to comment.