-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathGulpFile.js
More file actions
39 lines (29 loc) · 892 Bytes
/
Copy pathGulpFile.js
File metadata and controls
39 lines (29 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
var gulp = require('gulp');
var Nw = require('nw-builder');
var gutil = require('gulp-util');
var shell = require('shelljs');
gulp.task('default', function() {
build(['win32']);
});
gulp.task('win32', function () {
build(['win32']);
});
gulp.task('pack:win32', ['win32'], function() {
return shell.exec('makensis ./installer-windows/installer.nsi');
});
function build(platform){
var nw = new Nw({
version : '0.13.1',
files: [ './presentation/**'],
platforms: platform, // change this to 'win' for/on windows,
winIco : "logo.icon"
});
// Log stuff you want
nw.on('log', function (msg) {
gutil.log('node-webkit-builder', msg);
});
// Build returns a promise, return it so the task isn't called in parallel
return nw.build().catch(function (err) {
gutil.log('node-webkit-builder', err);
});
}