add script build

This commit is contained in:
zhandouxiaojiji committed 2020-10-09 19:28:56 +08:00
1 parent ebbae1ae79
commit 6974dfe067
3 files changed
+598 -24

No files matched your search

+3 -1
View File
@@ -6,7 +6,8 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"prestart": "webpack --config webpack.common.config.js",
"start": "electron ."
"start": "electron .",
"build": "electron-packager ./ behavior3editor --platform=win32 --arch=x64 --out=./build"
},
"repository": {
"type": "git",
@@ -29,6 +30,7 @@
"@types/react": "^16.9.51",
"@types/react-dom": "^16.9.8",
"electron": "^10.1.3",
"electron-packager": "^15.1.0",
"react": "^16.13.1",
"react-dom": "^16.13.1"
}