From 7583ae677ae1081efb0dea44cba116fba5c6297b Mon Sep 17 00:00:00 2001 From: Alexander Adam Date: Wed, 10 Oct 2018 14:54:57 +0200 Subject: [PATCH] add package build info --- .gitignore | 1 + README.md | 16 ++++++++++++++++ package.json | 43 ++++++++++++++++++++++++++++++++++++++----- 3 files changed, 55 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 3c3629e..21a463e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ node_modules +.dist diff --git a/README.md b/README.md index 5c57a7b..3a16267 100644 --- a/README.md +++ b/README.md @@ -23,3 +23,19 @@ A stylish new Controller app for the Logitech Media Server. ![home](http://i.imgur.com/jK9F1Fq.png) ![settings](http://i.imgur.com/KPeGhrP.png) ![filter](http://i.imgur.com/NPCEaWw.png) + +### Build + +Fetch all dependencies with + +```bash +$ npm install +``` + +and build packages with + +``` +$ npm run dist +``` + +You can find the packages in the `dist/` directory afterwards. diff --git a/package.json b/package.json index 2a08d86..49ac286 100644 --- a/package.json +++ b/package.json @@ -4,11 +4,43 @@ "version": "0.1.0-alpha.13", "main": "main.js", "license": "MIT", + "author": "Michael Lehenauer ", + "email": "lehenauer.m@gmail.com", "repository": "michiil/squeeze-controller", "description": "Webapp for controlling the Logitech Media Server", "scripts": { - "start": "electron .", - "test": "standard" + "postinstall": "install-app-deps", + "start": "npm install && electron .", + "test": "standard", + "pack": "build --dir", + "dist": "build" + }, + "build": { + "appId": "squeeze-controller", + "dmg": { + "contents": [ + { + "x": 110, + "y": 150 + }, + { + "x": 240, + "y": 150, + "type": "link", + "path": "/Applications" + } + ] + }, + "linux": { + "target": [ + "AppImage", + "deb" + ] + }, + "win": { + "target": "squirrel", + "icon": "build/icon.ico" + } }, "standard": { "globals": [ @@ -24,10 +56,11 @@ "angular-ui-bootstrap": "^2.0.1", "angular-utf8-base64": "0.0.5", "bootstrap": "^3.3.7", - "electron-debug": "^1.0.1", - "electron-prebuilt": "^1.3.2" + "electron-debug": "^1.0.1" }, "devDependencies": { - "standard": "^7.1.2" + "electron-builder": "^20.28.4", + "standard": "^7.1.2", + "electron-prebuilt": "^1.3.2" } }