From 05d7f99da97929538d9003ae205252d4b5e62cc8 Mon Sep 17 00:00:00 2001 From: Gilles De Mey Date: Wed, 2 Mar 2016 23:16:20 +0100 Subject: [PATCH] Added pruning to make the build smaller, and using disk images for better compression --- Gruntfile.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index bfb950c..aff8e3f 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -70,7 +70,7 @@ module.exports = function(grunt) { version : '0.36.9', platform : 'darwin', arch : 'x64', - // ignore : 'node_modules/', + prune : true, 'app-version' : packageJson.version, 'app-bundle-id' : 'com.gillesdemey.cumulus' } diff --git a/package.json b/package.json index c93198f..ffc6d54 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "start": "grunt", "build:osx": "grunt build:osx && cp ./cumulus.icns dist/Cumulus.app/Contents/Resources/atom.icns && npm run package:osx", - "package:osx": "zip -r -X dist/Cumulus-$npm_package_version-osx.zip dist/Cumulus.app" + "package:osx": "hdiutil create -format UDZO -volname Cumulus -srcfolder dist dist/Cumulus-$npm_package_version-osx.dmg" }, "devDependencies": { "browserify": "^10.0.0",