From 46f51f2637b981f3324005d7f806f538ac91ce1b Mon Sep 17 00:00:00 2001 From: Josh Ghent Date: Fri, 10 Aug 2018 00:32:34 +0100 Subject: [PATCH] Added command for creating the DMG. Added it to the gitignore. --- .gitignore | 2 ++ package.json | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index bdef25c..f508cba 100644 --- a/.gitignore +++ b/.gitignore @@ -66,3 +66,5 @@ typings/ dist/ GifBarApp/ + +GifBar.dmg diff --git a/package.json b/package.json index 461de65..5b977e3 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@joshghent/gifbar", "version": "1.0.0", "description": "A Mac Menu bar for getting your favourite gifs URL to send to your friends", - "main": "index.js", + "main": "./dist/index.js", "license": "MIT", "private": false, "author": "Josh Ghent (https://joshghent.com)", @@ -13,7 +13,8 @@ "watch:react": "parcel watch main.js --target=node", "watch": "concurrently \"npm watch:electron\" \"npm watch:react\" ", "build": "parcel build index.js --target=electron && parcel build main.js --target=node", - "package": "electron-packager . GifBar --platform=darwin --icon=icon.icns --overwrite --out=GifBarApp" + "package": "electron-packager . GifBar --platform=darwin --icon=icon.icns --overwrite --out=GifBarApp", + "package-dmg": "electron-installer-dmg ./GifBarApp/GifBar-darwin-x64/GifBar.app GifBar --icon=icon.icns --overwrite --out=GifBarInstaller" }, "keywords": [ "giphy",