Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

Commit

Permalink
[electron-builder] fix 'node_modules' copy (#2196)
Browse files Browse the repository at this point in the history
copying errored due to symlinks in unnecessary 'electron' devDep package
  • Loading branch information
luclu authored and evertonfraga committed May 4, 2017
1 parent 59df333 commit 71ea09b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 3 additions & 1 deletion gulpTasks/building.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ gulp.task('clean-dist', (cb) => {

gulp.task('copy-app-source-files', () => {
return gulp.src([
'node_modules/**',
'node_modules/**/*',
'!node_modules/electron/',
'!node_modules/electron/**/*',
'./main.js',
'./clientBinaries.json',
'./modules/**',
Expand Down
11 changes: 10 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,18 @@ const gulp = require('gulp');
const minimist = require('minimist');
const runSeq = require('run-sequence');

// available crossplatform builds
let platforms;
if (process.platform === 'darwin') {
platforms = ['mac', 'linux', 'win'];
} else if (process.platform === 'win32') {
platforms = ['win'];
} else {
platforms = ['linux', 'win'];
}

// parse commandline arguments
const args = process.argv.slice(2);
const platforms = (process.platform === 'darwin') ? ['mac', 'linux', 'win'] : ['linux', 'win'];
const options = minimist(args, {
string: ['walletSource', 'test'],
boolean: _.flatten(['wallet', platforms]),
Expand Down

0 comments on commit 71ea09b

Please sign in to comment.