Skip to content

Commit

Permalink
Remove unneeded files from the app package.
Browse files Browse the repository at this point in the history
  • Loading branch information
zaygraveyard committed May 2, 2017
1 parent 8d42f9a commit 6185e01
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ var nwOptions = {
['osx64', 'linux32', 'linux64'].forEach(function(platform) {
gulp.task(`build:${platform}`, function(callback) {
var nw = new NwBuilder(Object.assign(nwOptions, {
files: [`${srcDir}/**`, `!${srcDir}/ruby/**`],
files: [
`${srcDir}/**`,
`!${srcDir}/app/assets/{less,test}/**`,
`!${srcDir}/app/templates/**`,
`!${srcDir}/ruby/**`,
],
platforms: [platform],
macIcns: path.resolve('./assets-osx/icon.icns'),
macPlist: {
Expand All @@ -27,7 +32,7 @@ var nwOptions = {
},
}));

nw.on('log', console.log.bind(console));
nw.on('log', console.log.bind(console));
nw.build(callback);
});
});
Expand All @@ -37,6 +42,8 @@ gulp.task(`build:win32`, function(callback) {
var nw = new NwBuilder(Object.assign(nwOptions, {
files: [
`${srcDir}/**`,
`!${srcDir}/app/assets/{less,test}/**`,
`!${srcDir}/app/templates/**`,
`!${srcDir}/ruby/{include,share}/**`,
`!${srcDir}/ruby/lib/{pkgconfig,tcltk}/**`,
],
Expand All @@ -45,7 +52,7 @@ gulp.task(`build:win32`, function(callback) {
zip: false,
}));

nw.on('log', console.log.bind(console));
nw.on('log', console.log.bind(console));
nw.build(callback);
});

Expand Down

0 comments on commit 6185e01

Please sign in to comment.