-
Notifications
You must be signed in to change notification settings - Fork 2
/
Gruntfile.js
executable file
·44 lines (42 loc) · 1.51 KB
/
Gruntfile.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
module.exports = function (grunt) {
var signing = null;
try {
signing = grunt.file.readJSON('../cdcert.json');
} catch (e) { }
var opts64 = {
appDirectory: '../cdb/CoughDrop-win32-x64',
outputDirectory: '../cdb/inst/64',
authors: 'CoughDrop, Inc.',
exe: 'coughdrop.exe',
title: 'CoughDrop',
iconUrl: 'https://www.mycoughdrop.com/app.ico',
loadingGif: 'loading.gif',
remoteReleases: 'https://s3.amazonaws.com/coughdrop/installer/windows/x64',
setupIcon: 'coughdrop.ico'
};
var opts32 = {
appDirectory: '../cdb/CoughDrop-win32-ia32',
outputDirectory: '../cdb/inst/32',
authors: 'CoughDrop, Inc.',
exe: 'coughdrop.exe',
title: 'CoughDrop',
iconUrl: 'https://www.mycoughdrop.com/app.ico',
loadingGif: 'loading.gif',
remoteReleases: 'https://s3.amazonaws.com/coughdrop/installer/windows/ia32',
setupIcon: 'coughdrop.ico'
};
if (signing && signing.password && signing.cert) {
opts64.certificateFile = signing.cert;
opts64.certificatePassword = signing.password;
opts32.certificateFile = signing.cert;
opts32.certificatePassword = signing.password;
}
grunt.initConfig({
'create-windows-installer': {
x64: opts64,
ia32: opts32
}
});
grunt.loadNpmTasks('grunt-electron-installer');
// grunt.registerTask('installer', ['installer']);
};