forked from OpenBazaar/OpenBazaar-Installer
/
Gruntfile.js
56 lines (50 loc) · 1.39 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
45
46
47
48
49
50
51
52
53
54
55
56
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
'electron-debian-installer': {
options: {
productName: 'OpenBazaar',
rename: function (dest, src) {
return dest + '<%= name %>_<%= version %>-<%= revision %>_<%= arch %>.deb';
}
},
linux32: {
options: {
arch: 'i386'
},
src: 'temp/OpenBazaar-linux-ia32/',
dest: 'temp/'
},
linux64: {
options: {
arch: 'amd64'
},
src: 'temp/OpenBazaar-linux-x64/',
dest: 'temp/'
}
},
'create-windows-installer': {
x64: {
appDirectory: 'temp-win64/OpenBazaar-win32-x64',
outputDirectory: 'build-win64',
name: 'OpenBazaar',
productName: 'OpenBazaar',
authors: 'OpenBazaar',
owners: 'OpenBazaar',
exe: 'OpenBazaar.exe',
description: 'OpenBazaar',
version: grunt.option('version') || '',
title: 'OpenBazaar',
iconUrl: 'https://openbazaar.org/downloads/icon.ico',
setupIcon: 'windows/icon.ico',
loadingGif: 'windows/ebay.gif',
noMsi: true
}
}
});
grunt.loadNpmTasks('grunt-electron-debian-installer');
grunt.loadNpmTasks('grunt-electron-installer');
// Default task(s).
grunt.registerTask('default', ['electron-debian-installer']);
};