From 2ab2206f4d115a9c56953ee2b5336f2d496657ce Mon Sep 17 00:00:00 2001 From: nicco Date: Tue, 22 May 2018 21:40:59 +0200 Subject: [PATCH] Removed support for windows and linux due tue missing testing --- package.json | 10 +++------- src/main.js | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 417f45a..0d85592 100755 --- a/package.json +++ b/package.json @@ -2,16 +2,12 @@ "name": "volta", "private": true, "productName": "Volta", - "version": "1.0.0", + "version": "1.0.1", "license": "MIT", "author": "Niccolo Borgioli", "main": "./src/main.js", "scripts": { - "pack:native": "electron-builder", - "pack:mac": "electron-builder --mac", - "pack:win": "electron-builder --win", - "pack:linux": "electron-builder --linux", - "pack:all": "electron-builder -mwl", + "pack:mac": "electron-builder -m", "start": "electron ." }, "devDependencies": { @@ -23,4 +19,4 @@ "battery-level": "^3", "electron-settings": "^3" } -} +} \ No newline at end of file diff --git a/src/main.js b/src/main.js index 316a957..34e92eb 100755 --- a/src/main.js +++ b/src/main.js @@ -29,7 +29,7 @@ let charging = undefined let numMin = 0 let numMax = 0 -app.dock.hide() +if (app.dock !== undefined) app.dock.hide() app.on('ready', () => { createTray()