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 node_modules
package-lock.json package-lock.json
dist

View File

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