Skip to content

Commit

Permalink
fix(compile) building on linux and windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob620 committed Oct 31, 2020
1 parent 1c530a3 commit 84184d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ if (process.platform === 'darwin') {
exec('"./node_modules/.bin/electron-packager" ./bin/unpackaged --out ./bin --overwrite');

try {
fs.accessSync('../bin/Probelab ReImager-win32-x64', fs.constants.F_OK);
fs.accessSync('./bin/Probelab ReImager-win32-x64', fs.constants.F_OK);
console.log('Building installer package for Windows x64');
exec('"./node_modules/.bin/electron-builder" --pd "./bin/Probelab ReImager-win32-x64"');
} catch(e) {}

try {
fs.accessSync('../bin/Probelab ReImager-linux-x64', fs.constants.F_OK);
fs.accessSync('./bin/Probelab ReImager-linux-x64', fs.constants.F_OK);
console.log('Building installer package for Linux x64');
exec('"./node_modules/.bin/electron-builder" --pd "./bin/Probelab ReImager-linux-x64"');
} catch(e) {}
Expand Down

0 comments on commit 84184d0

Please sign in to comment.