Skip to content

Commit

Permalink
tweak for osx build
Browse files Browse the repository at this point in the history
  • Loading branch information
Brad Arnett committed Mar 6, 2019
1 parent 16f3fd5 commit 1b16fcf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gulps/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const request = require('request');
const fs = require('fs');
const unzip = require('unzip');
const path = require('path');
const { execSync } = require('child_process');

const opt = {
version : '4.0.4',
Expand Down Expand Up @@ -68,8 +69,8 @@ module.exports = function(gulp, plugins, pkg) {
// osx has to be hard
const path = `${releaseDir}/encryptic.app`;
rmEntireDir(path);
fs.renameSync(`${releaseDir}/Electron.app`,
path);
execSync(`mv ${releaseDir}/Electron.app ${path}`);
//fs.renameSync(`${releaseDir}/Electron.app`, path);
fs.chmodSync(`${releaseDir}/encryptic.app/Contents/MacOS/Electron`, '0755');
}
else if (plat === 'win32-ia32' || plat === 'win32-x64') {
Expand Down

0 comments on commit 1b16fcf

Please sign in to comment.