This commit is contained in:
Jeffrey Morgan 2015-06-09 21:54:11 -07:00
Родитель 1552d09957
Коммит 1263a8c4fe
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -16,6 +16,8 @@ module.exports = function (grunt) {
var env = process.env; var env = process.env;
env.NODE_ENV = target; env.NODE_ENV = target;
console.log(process.cwd());
var version = function (str) { var version = function (str) {
var match = str.match(/(\d+\.\d+\.\d+)/); var match = str.match(/(\d+\.\d+\.\d+)/);
return match ? match[1] : null; return match ? match[1] : null;
@ -57,7 +59,8 @@ module.exports = function (grunt) {
version: packagejson['electron-version'], version: packagejson['electron-version'],
platform: 'darwin', platform: 'darwin',
arch: 'x64', arch: 'x64',
asar: true asar: true,
'app-bundle-id': 'com.kitematic.kitematic'
} }
} }
}, },
@ -124,6 +127,9 @@ module.exports = function (grunt) {
cwd: 'resources', cwd: 'resources',
src: ['**/*'], src: ['**/*'],
dest: 'dist/osx/Kitematic.app/Contents/Resources/resources/' dest: 'dist/osx/Kitematic.app/Contents/Resources/resources/'
}, {
src: 'util/kitematic.icns',
dest: 'dist/osx/Kitematic.app/Contents/Resources/atom.icns'
}], }],
options: { options: {
mode: true mode: true