diff --git a/package.json b/package.json index 11e9246..5e24d87 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Foco", - "version": "0.0.2", + "version": "0.0.3", "productName": "Foco", "description": "Stay focused with Foco and boosts productivity 🚀 by creating perfect productive environment.", "author": "Akash Nimare", @@ -16,7 +16,9 @@ "scripts": { "test": "standard", "start": "electron .", - "build:osx": "electron-packager . Foco --out=dist --ignore=dist --app-version=$npm_package_version --prune --asar --icon=img/Icon.icns --overwrite --platform=darwin --arch=x64 && cd dist/Foco-darwin-x64 && zip -ryXq9 ../Foco-osx-${npm_package_version}.zip Foco.app" + "build:dmg" : "electron-installer-dmg ./dist/Foco-darwin-x64/Foco.app ./dist/Foco-$npm_package_version", + "clean":"rm -Rf ./dist", + "build:osx": "npm run clean && electron-packager . Foco --out=dist --ignore=dist --app-version=$npm_package_version --prune --asar --icon=img/Icon.icns --overwrite --platform=darwin --arch=x64 && cd dist/Foco-darwin-x64 && npm run build:dmg && zip -ryXq9 ../Foco-osx-${npm_package_version}.zip Foco.app" }, "keywords": [ "electron", @@ -33,6 +35,7 @@ }, "devDependencies": { "electron-packager": "^7.0.0", + "electron-installer-dmg":"*", "electron": "1.3.3", "standard": "*" }