forked from stephanepericat/toptal-electron-loki-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
37 lines (35 loc) · 1.09 KB
/
gulpfile.js
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
////////
// This sample is published as part of the blog article at www.toptal.com/blog
// Visit www.toptal.com/blog and subscribe to our newsletter to read great posts
////////
var gulp = require('gulp'),
electron = require('gulp-electron'),
info = require('./src/package.json');
gulp.task('electron', function() {
gulp.src("")
.pipe(electron({
src: './src',
packageJson: info,
release: './dist',
cache: './cache',
version: 'v0.31.2',
packaging: true,
platforms: ['win32-ia32', 'darwin-x64'],
platformResources: {
darwin: {
CFBundleDisplayName: info.name,
CFBundleIdentifier: info.bundle,
CFBundleName: info.name,
CFBundleVersion: info.version,
icon: 'keychain.icns'
},
win: {
"version-string": info.version,
"file-version": info.version,
"product-version": info.version,
"icon": 'keychain.ico'
}
}
}))
.pipe(gulp.dest(""));
});