add support for electron modules
This commit is contained in:
parent
c3a6c876cb
commit
4d81932f38
5 changed files with 52 additions and 19 deletions
16
package.json
16
package.json
|
|
@ -52,10 +52,10 @@
|
|||
"node-fetch": "^3.3.2"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "electron .",
|
||||
"start-dev": "electron . --devel",
|
||||
"start-dbg": "electron . --debugg",
|
||||
"start-ddb": "electron . --devel --debugg",
|
||||
"start": "npm run prebuild && electron .",
|
||||
"start-dev": "npm run prebuild && electron . --devel",
|
||||
"start-dbg": "npm run prebuild && electron . --debugg",
|
||||
"start-ddb": "npm run prebuild && electron . --devel --debugg",
|
||||
"build": "npm run prebuild && electron-builder",
|
||||
"build-debug": "npm run prebuild && DEBUG=electron-builder electron-builder",
|
||||
"build-linux": "npm run build -- --linux --x64",
|
||||
|
|
@ -87,6 +87,13 @@
|
|||
"**/*"
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": "tmp/mod",
|
||||
"to": "mod",
|
||||
"filter": [
|
||||
"**/*"
|
||||
]
|
||||
},
|
||||
"bin/*",
|
||||
"conf/**/*",
|
||||
"data/**/*",
|
||||
|
|
@ -119,6 +126,7 @@
|
|||
"entitlements": "bin/electron-entitlements.plist",
|
||||
"entitlementsInherit": "bin/electron-entitlements.plist",
|
||||
"target": [
|
||||
"dmg",
|
||||
"zip"
|
||||
]
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue