Skip to content

Commit

Permalink
copy icns after build
Browse files Browse the repository at this point in the history
  • Loading branch information
kidwm committed Aug 22, 2015
1 parent f6bb5ff commit 86ec229
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
const project_name = 'Plasmon'
const electron_version = '0.30.2';
const electron_version = '0.30.4';
const is_development = process.argv[2] !== 'build';
grunt.initConfig({
browserSync: {
Expand Down Expand Up @@ -39,6 +39,12 @@ module.exports = function(grunt) {
src: ['index.html', 'script.js', 'main.js', 'package.json'],
dest: 'build/app/'
}]
},
osx: {
files: [{
src: 'logo.icns',
dest: 'build/<%= project_name %>-darwin-x64/<%= project_name %>.app/Contents/Resources/atom.icns'
}]
}
},
electron: {
Expand Down Expand Up @@ -69,5 +75,5 @@ module.exports = function(grunt) {
}
});
grunt.registerTask('default', ['browserify', 'browserSync']);
grunt.registerTask('build', ['browserify', 'copy', 'electron']);
grunt.registerTask('build', ['browserify', 'copy:main', 'electron', 'copy:osx']);
}

0 comments on commit 86ec229

Please sign in to comment.