-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
35 lines (31 loc) · 853 Bytes
/
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
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
copy: {
main: {
files: [
{src: 'main.js', dest: 'dist/'},
{src: 'package.json', dest: 'dist/'},
{expand: true, src: 'render/**', dest: 'dist/'},
{expand: true, src: 'services/**', dest: 'dist/'}
]
},
}
});
grunt.registerTask('default', ['package']);
grunt.registerTask('package', ['copy','package:electron']);
grunt.registerTask('package:electron', function() {
var packager = require('electron-packager');
var opts = {
dir: 'dist/',
out: './dist',
name: 'OpenStudio',
platform: 'darwin',
arch: 'x64',
version: '0.28.2',
overwrite: true
};
packager(opts, this.async())
} );
grunt.loadNpmTasks('grunt-contrib-copy');
};