-
Notifications
You must be signed in to change notification settings - Fork 4
/
gulpfile.js
45 lines (39 loc) · 1.4 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
38
39
40
41
42
43
44
45
'use strict';
/* jshint node:true */
var electron = require('gulp-electron');
var gulp = require('gulp');
var util = require('gulp-util');
var packageJson = require('./src/package.json');
var buildPackageJson = require('./package.json');
process.NODE_ENV = 'test';
gulp.task('package', function() {
gulp.src("")
.pipe(electron({
src: './src',
packageJson: packageJson,
release: './release',
cache: './cache',
version: 'v' + buildPackageJson.devDependencies["electron-prebuilt"].slice(1),
rebuild: false,
packaging: true,
asar: true,
platforms: ['win32-ia32', 'win32-x64', 'darwin-x64'],
platformResources: {
darwin: {
CFBundleDisplayName: "AnalyzeOrFeed",
CFBundleIdentifier: "AnalyzeOrFeed",
CFBundleName: "AnalyzeOrFeed",
CFBundleVersion: packageJson.version,
icon: 'src/app/icons/aof.icns'
},
win: {
"version-string": packageJson.version,
"file-version": packageJson.version,
"product-version": packageJson.version,
"icon": 'src/app/icons/aof.ico'
}
}
}))
.pipe(gulp.dest(""));
});
gulp.task('default', ['package']);