forked from Aerolab/youtube-tv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
48 lines (40 loc) · 1.27 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
module.exports = function(grunt) {
grunt.initConfig({
nodewebkit: {
options: {
app_name: "Remote",
app_version: "0.0.1",
zip: false, // No zip for the mac app
version: "0.10.5", // Node-webkit version
build_dir: "./build",
mac_icns: "./assets/icon.icns",
mac: true,
win: true,
linux32: false,
linux64: false
},
src: ["./package.json", "./assets/**", "./node_modules/**", "!./node_modules/grunt*/**"]
},
// We need to copy FFMPEG libraries to add support for videos and mp3s
copy: {
main: {
files: [
{
src: 'libraries/windows/ffmpegsumo.dll',
dest: 'build/cache/win/0.10.5/ffmpegsumo.dll',
flatten: true
},
{
src: 'libraries/mac/ffmpegsumo.so',
dest: 'build/cache/mac/0.10.5/node-webkit-v0.10.5-osx-ia32/node-webkit.app/Contents/Frameworks/node-webkit Framework.framework/Libraries/ffmpegsumo.so',
flatten: true
}
]
}
}
});
grunt.loadNpmTasks("grunt-contrib-copy");
grunt.loadNpmTasks("grunt-node-webkit-builder");
grunt.registerTask("nodewebkitbuild", ["nodewebkit", "copy"]);
grunt.registerTask("copylibs", ["copy"]);
};