From 1263a8c4fead4c771692cb5c8220ea6d6b2b437e Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Tue, 9 Jun 2015 21:54:11 -0700 Subject: [PATCH] Fix icon on mac os x --- Gruntfile.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 8f829617..4ae6c938 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -16,6 +16,8 @@ module.exports = function (grunt) { var env = process.env; env.NODE_ENV = target; + console.log(process.cwd()); + var version = function (str) { var match = str.match(/(\d+\.\d+\.\d+)/); return match ? match[1] : null; @@ -57,7 +59,8 @@ module.exports = function (grunt) { version: packagejson['electron-version'], platform: 'darwin', arch: 'x64', - asar: true + asar: true, + 'app-bundle-id': 'com.kitematic.kitematic' } } }, @@ -124,6 +127,9 @@ module.exports = function (grunt) { cwd: 'resources', src: ['**/*'], dest: 'dist/osx/Kitematic.app/Contents/Resources/resources/' + }, { + src: 'util/kitematic.icns', + dest: 'dist/osx/Kitematic.app/Contents/Resources/atom.icns' }], options: { mode: true