This repository has been archived by the owner on Jan 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathGruntfile.js
97 lines (92 loc) · 3.06 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
/*!
* Copyright 2014, Digium, Inc.
* All rights reserved.
*
* This source code is licensed under The AGPL v3 License found in the
* LICENSE file in the root directory of this source tree.
*
* For all details and documentation: https://www.respoke.io
*/
var config = require('./config');
exports = module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.loadNpmTasks('grunt-node-webkit-builder');
grunt.initConfig({
copy: {
nwk: {
files: {
'./public/release/app/apollo.png': './public/img/apollo-a.png',
'./public/release/app/apollo.ico': './public/img/apollo-a-tile.ico',
'./public/release/app/apollo.icns': './public/img/apollo-a.icns',
'./public/release/app/package.json': './nodewebkit.json',
'./public/release/app/passthrough.html': './public/passthrough.html'
}
}
},
clean: {
nwk: {
src: ['./public/release/**/*']
},
pack: {
src: ['./public/release/Apollo/', './public/release/app/']
}
},
nodewebkit: {
options: {
version: '0.10.5',
platforms: ['osx'],//, 'win', 'linux32', 'linux64'],
buildDir: './public/release',
macIcns: './public/release/app/apollo.icns',
winIco: './public/release/app/apollo.ico',
cacheDir: __dirname + '/../nodewebkit-cache'
},
src: ['./public/release/app/**/*']
},
compress: {
osx: {
options: {
archive: './public/release/osx.zip'
},
files: [
{expand: true, cwd: './public/release/' + config.name, src: ['./osx/**/*']}
]
},
win: {
options: {
archive: './public/release/win.zip'
},
files: [
{expand: true, cwd: './public/release/' + config.name, src: ['./win/**/*']}
]
},
linux32: {
options: {
archive: './public/release/linux32.zip'
},
files: [
{expand: true, cwd: './public/release/' + config.name, src: ['./linux32/**/*']}
]
},
linux64: {
options: {
archive: './public/release/linux64.zip'
},
files: [
{expand: true, cwd: './public/release/' + config.name, src: ['./linux64/**/*']}
]
}
}
});
grunt.registerTask('release', [
'clean',
'copy:nwk',
'nodewebkit'
]);
grunt.registerTask('pack', [
// 'compress',
'compress:osx',
'clean:pack'
]);
};