forked from carbonwallet/carbonwallet.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
executable file
·72 lines (68 loc) · 1.61 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
63
64
65
66
67
68
69
70
71
72
module.exports = function(grunt) {
grunt.initConfig({
nodewebkit: {
options: {
build_dir: './build', // Where the build version of my node-webkit app is saved
credits: './app/credits.html',
mac: true,
win: true,
linux32: true,
linux64: true
},
src: './app/**' // Your node-webkit app
},
compress: {
mac: {
options: {
archive: 'releases/CarbonWallet-1.1-Mac.tgz',
},
files: [
{
expand: true,
src: '**',
cwd: 'build/releases/carbonwallet/mac/',
}
]
},
lin32: {
options: {
archive: 'releases/CarbonWallet-1.1-Linux32.tgz',
},
files: [
{
expand: true,
src: '**',
cwd: 'build/releases/carbonwallet/linux32/',
}
]
},
lin64: {
options: {
archive: 'releases/CarbonWallet-1.1-Linux64.tgz',
},
files: [
{
expand: true,
src: '**',
cwd: 'build/releases/carbonwallet/linux64/',
}
]
},
win: {
options: {
archive: 'releases/CarbonWallet-1.1-Win.zip',
},
files: [
{
expand: true,
src: '**',
cwd: 'build/releases/carbonwallet/win/',
}
]
}
},
});
grunt.loadNpmTasks('grunt-node-webkit-builder');
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.registerTask('default', ['nodewebkit', 'compress']);
};