From a85cda794c1f7137be34031e6d47f2c3398c1cae Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Tue, 4 Feb 2020 09:02:49 +0700 Subject: [PATCH] add electron build --- package.json | 35 ++++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 611e483..f965a40 100644 --- a/package.json +++ b/package.json @@ -3,10 +3,39 @@ "version": "1.0.0", "description": "Clinic Application", "main": "main.js", - "dependencies": { - "electron": "^8.0.0" + "build": { + "appId": "cubetiq-clinic", + "category": "com.cubetiqs.pro.clinic", + "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" + } + }, + "dependencies": {}, + "devDependencies": { + "electron": "^8.0.0", + "electron-builder": "^22.3.2" }, - "devDependencies": {}, "scripts": { "start": "electron main.js", "test": "echo \"Error: no test specified\" && exit 1"