2
0
mirror of https://github.com/frappe/books.git synced 2024-12-22 19:09:01 +00:00

Add electron-builder configuration in package.json

This commit is contained in:
Faris Ansari 2018-10-21 18:19:58 +05:30
parent dfbddd651a
commit 5f81654c7f
4 changed files with 12047 additions and 67 deletions

3
.gitignore vendored
View File

@ -8,3 +8,6 @@ Thumbs.db
dist
www/dist
Frappe Accounting*
build
!build/icons
!.gitkeep

9773
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -8,7 +8,41 @@
"email": "hello@frappe.io"
},
"build": {
"appId": "io.frappe.accounting"
"asarUnpack": [
"node_modules/sqlite3"
],
"productName": "Frappe Accounting",
"appId": "io.frappe.accounting",
"directories": {
"output": "build"
},
"files": [
"dist/electron/**/*"
],
"dmg": {
"contents": [
{
"x": 410,
"y": 150,
"type": "link",
"path": "/Applications"
},
{
"x": 130,
"y": 150,
"type": "file"
}
]
},
"mac": {
"icon": "build/icons/icon.icns"
},
"win": {
"icon": "build/icons/icon.ico"
},
"linux": {
"icon": "build/icons"
}
},
"main": "dist/electron/main.js",
"license": "MIT",
@ -16,9 +50,12 @@
"test": "mocha tests",
"start": "frappe start",
"electron": "ELECTRON=true frappe start electron",
"build-electron": "NODE_ENV=production ELECTRON=true frappe build electron && electron-builder"
"pack-electron": "NODE_ENV=production ELECTRON=true frappe build electron",
"build-electron": "npm run pack-electron && electron-builder",
"postinstall": "electron-builder install-app-deps"
},
"dependencies": {
"frappejs": "^0.0.10"
"frappejs": "github:frappe/frappejs",
"popper.js": "^1.14.4"
}
}

2293
yarn.lock

File diff suppressed because it is too large Load Diff