forked from stanfieldr/ghetto-skype
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
62 lines (53 loc) · 1.26 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
61
62
const os = require('os');
// Possible values: x64, ia32
let arch = os.arch();
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
grunt.initConfig({
'electron-packager': {
build: {
options: {
platform: os.platform(),
arch: arch,
dir: '.',
out: './build',
icon: './assets/tray/skype-big.png',
ignore: ['build', 'dist'],
overwrite: true
}
}
},
'electron-installer-redhat': {
linux: {
options: {
bin: './Ghetto Skype',
icon: "./assets/tray/skype-big.png",
arch: arch === 'x64' ? 'x86_64' : 'x86',
depends: [
'libXScrnSaver'
]
},
src: 'build/Ghetto Skype-linux-' + arch + '/',
dest: 'dist/'
}
},
'electron-installer-debian': {
linux: {
options: {
bin: './Ghetto Skype',
icon: "./assets/tray/skype-big.png",
arch: arch === 'x64' ? 'amd64' : 'i386',
depends: [
'libappindicator1'
]
},
src: 'build/Ghetto Skype-linux-' + arch + '/',
dest: 'dist/'
}
}
});
grunt.registerTask('build', ['electron-packager:build']);
grunt.registerTask('rpm', ['build', 'electron-installer-redhat']);
grunt.registerTask('deb', ['build', 'electron-installer-debian']);
grunt.registerTask('default', ['build']);
};