add build

This commit is contained in:
Sambo Chea 2020-02-04 09:25:48 +07:00
parent a85cda794c
commit 06f7ac90a2
2 changed files with 10 additions and 18 deletions

3
.gitignore vendored
View File

@ -1,2 +1,3 @@
node_modules
package-lock.json
package-lock.json
dist

View File

@ -4,21 +4,9 @@
"description": "Clinic Application",
"main": "main.js",
"build": {
"appId": "cubetiq-clinic",
"category": "com.cubetiqs.pro.clinic",
"dmg": {
"contents": [
{
"x": 110,
"y": 150
},
{
"x": 240,
"y": 150,
"type": "link",
"path": "/Applications"
}
]
"appId": "com.cubetiqs.clinic",
"mac": {
"category": "com.cubetiqs.pro.clinic"
},
"linux": {
"target": [
@ -27,7 +15,7 @@
]
},
"win": {
"target": "squirrel",
"target": "nsis",
"icon": "build/icon.ico"
}
},
@ -37,7 +25,10 @@
"electron-builder": "^22.3.2"
},
"scripts": {
"start": "electron main.js",
"postinstall": "electron-builder install-app-deps",
"start": "npm install && electron ./main",
"pack": "electron-builder --dir",
"dist": "electron-builder",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {