-
Notifications
You must be signed in to change notification settings - Fork 769
/
Gruntfile.js
63 lines (58 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
61
62
63
module.exports = function(grunt) {
grunt.initConfig({
compass: {
dist: {
files: {
'css/app.css': 'sass/app.scss'
}
}
},
watch: {
files: ['sass/**/*.scss'],
tasks: ['sass'],
options: {
livereload: true
}
},
nodewebkit: {
options: {
version: '0.9.1',
build_dir: './build', // Where the build version of my node-webkit app is saved
mac_icns: './images/popcorntime.icns', // Path to the Mac icon file
mac: true, // We want to build it for mac
win: true, // We want to build it for win
linux32: false, // We don't need linux32
linux64: true // We don't need linux64
},
src: ['./css/**', './fonts/**', './images/**', './js/**', './language/**', './node_modules/**', './rc/**', './tmp/**', './Config.rb', './index.html', './package.json', './README.md' ] // Your node-webkit app './**/*'
},
copy: {
main: {
files: [
{
src: 'libraries/win/ffmpegsumo.dll',
dest: 'build/releases/Popcorn-Time/win/Popcorn-Time/ffmpegsumo.dll',
flatten: true
},
{
src: 'libraries/mac/ffmpegsumo.so',
dest: 'build/releases/Popcorn-Time/mac/Popcorn-Time.app/Contents/Frameworks/node-webkit Framework.framework/Libraries/ffmpegsumo.so',
flatten: true
},
{
src: 'libraries/linux64/libffmpegsumo.so',
dest: 'build/releases/Popcorn-Time/linux64/Popcorn-Time/libffmpegsumo.so',
flatten: true
}
]
}
}
});
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-node-webkit-builder');
grunt.registerTask('css', ['compass']);
grunt.registerTask('default', ['compass']);
grunt.registerTask('nodewkbuild', ['nodewebkit', 'copy']);
};