This repository has been archived by the owner on Mar 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 186
/
Gruntfile.js
60 lines (59 loc) · 1.94 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
57
58
59
60
const path = require('path');
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
'electron-installer-debian': {
options: {
productName: 'OpenBazaar',
name: 'openbazaar2',
arch: 'amd64',
version: '2.0.0',
bin: 'openbazaar2',
maintainer: 'OpenBazaar <project@openbazaar.org>',
rename(dest) {
return `${dest}<%= name %>_<%= version %>_<%= arch %>.deb`;
},
productDescription: 'Decentralized Peer to Peer Marketplace for Bitcoin',
lintianOverrides: [
'changelog-file-missing-in-native-package',
'executable-not-elf-or-script',
'extra-license-file',
],
icon: 'imgs/icon.png',
categories: ['Utility'],
priority: 'optional',
},
'app-with-asar': {
src: 'temp-linux64/openbazaar-linux-x64/',
dest: 'build-linux64/',
rename(dest) {
return path.join(dest, '<%= name %>_<%= arch %>.deb');
},
},
},
'create-windows-installer': {
x32: {
appDirectory: grunt.option('appdir'),
outputDirectory: grunt.option('outdir'),
name: grunt.option('appname'),
productName: grunt.option('appname'),
authors: 'OpenBazaar',
owners: 'OpenBazaar',
exe: `${grunt.option('appname')}.exe`,
description: `${grunt.option('appname')}`,
version: grunt.option('obversion') || '',
title: 'OpenBazaar',
iconUrl: 'http://openbazaar.org/assets/windows-icon.ico',
setupIcon: 'imgs/windows-icon.ico',
skipUpdateIcon: true,
loadingGif: 'imgs/windows-loading.gif',
noMsi: true,
},
},
});
grunt.loadNpmTasks('grunt-electron-installer-debian');
grunt.loadNpmTasks('grunt-electron-installer');
// Default task(s).
grunt.registerTask('default', ['electron-installer-debian']);
};