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:
parent
dfbddd651a
commit
5f81654c7f
3
.gitignore
vendored
3
.gitignore
vendored
@ -8,3 +8,6 @@ Thumbs.db
|
||||
dist
|
||||
www/dist
|
||||
Frappe Accounting*
|
||||
build
|
||||
!build/icons
|
||||
!.gitkeep
|
9773
package-lock.json
generated
Normal file
9773
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
43
package.json
43
package.json
@ -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"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user