This repository has been archived by the owner on Nov 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
110 lines (102 loc) · 2.82 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
var gulp = require('gulp');
var electron = require('gulp-electron');
var pkg = require('./src/package.json');
var version = pkg.dependencies['electron-prebuilt'].replace('^', 'v');
gulp.task('default', ['build:mac', 'build:win32', 'build:win64', 'build:linux32', 'build:linux64', 'build:arm']);
gulp.task('build:mac', () => {
gulp.src('')
.pipe(electron({
src: './src/',
packageJson: pkg,
release: './build/release',
cache: './build/cache',
version: version,
packaging: true,
platforms: [ 'darwin-x64' ],
platformResources: {
darwin: {
CFBundleDisplayName: pkg.name,
CFBundleIdentifier: 'xyz.lumios.shake',
CFBundleName: pkg.name,
CFBundleVersion: pkg.version,
icon: './src/resources/IconMac.icns'
}
}
}));
});
gulp.task('build:win32', () => {
gulp.src('')
.pipe(electron({
src: './src/',
packageJson: pkg,
release: './build/release',
cache: './build/cache',
version: version,
packaging: true,
platforms: [ 'win32-ia32' ],
platformResources: {
win: {
'version-string': pkg.version,
'file-version': pkg.version,
'product-version': pkg.version,
'icon': './src/resources/IconWindows.ico'
}
}
}));
});
gulp.task('build:win64', () => {
gulp.src('')
.pipe(electron({
src: './src/',
packageJson: pkg,
release: './build/release',
cache: './build/cache',
version: version,
packaging: true,
platforms: [ 'win32-x64' ],
platformResources: {
win: {
'version-string': pkg.version,
'file-version': pkg.version,
'product-version': pkg.version,
'icon': './src/resources/IconWindows.ico'
}
}
}));
});
gulp.task('build:linux32', () => {
gulp.src('')
.pipe(electron({
src: './src/',
packageJson: pkg,
release: './build/release',
cache: './build/cache',
version: version,
packaging: true,
platforms: [ 'linux-ia32' ]
}));
});
gulp.task('build:linux64', () => {
gulp.src('')
.pipe(electron({
src: './src/',
packageJson: pkg,
release: './build/release',
cache: './build/cache',
version: version,
packaging: true,
platforms: [ 'linux-x64' ]
}));
});
gulp.task('build:arm', () => {
gulp.src('')
.pipe(electron({
src: './src/',
packageJson: pkg,
release: './build/release',
cache: './build/cache',
version: version,
packaging: true,
platforms: [ 'linux-arm' ]
}));
});