Browse Source

Adds OSX packaging `npm run pack:osx`

craigsdennis 9 years ago
parent
commit
5949167a68
2 changed files with 7 additions and 2 deletions
  1. 4 1
      .gitignore
  2. 3 1
      package.json

+ 4 - 1
.gitignore

@@ -37,4 +37,7 @@ typings
 .node_repl_history
 
 # Webstorm/JetBrains
-.idea
+.idea
+
+# Local builds
+/builds

+ 3 - 1
package.json

@@ -4,7 +4,8 @@
   "description": "A GUI tool for flashing the Espruino JavaScript runtime on Adafruit Huzzah (ESP8366 based) boards",
   "main": "index.js",
   "scripts": {
-    "start": "electron index.js"
+    "start": "electron index.js",
+    "pack:osx": "./node_modules/.bin/electron-packager . $npm_package_productName --app-version=$npm_package_version --version=0.36.9 --out=builds --ignore='^/build$' --platform=darwin --arch=x64 --icon=icon.icns --overwrite"
   },
   "repository": {
     "type": "git",
@@ -29,6 +30,7 @@
     "serialport": "^2.0.7-beta1"
   },
   "devDependencies": {
+    "electron-packager": "^6.0.0",
     "electron-prebuilt": "^0.36.9"
   }
 }