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()