From 89cb05f837c76b001208770cb62c7ad840449c0a Mon Sep 17 00:00:00 2001
From: wangrong <wangrong@shsening.com>
Date: 星期四, 08 十二月 2022 15:31:41 +0800
Subject: [PATCH] 修改编译发布方式
---
server/package.json | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++-------
1 files changed, 50 insertions(+), 7 deletions(-)
diff --git a/server/package.json b/server/package.json
old mode 100644
new mode 100755
index beab7bb..1cc6bf1
--- a/server/package.json
+++ b/server/package.json
@@ -2,22 +2,27 @@
"name": "am_server",
"version": "0.1.0",
"private": true,
+ "bin": "./bin/www",
"scripts": {
"start": "nodemon ./bin/www",
+ "test": "npm run nodemon --ignore ./package.json --exec electron .",
"dev": "./node_modules/.bin/nodemon bin/www",
"prd": "pm2 start bin/www",
- "test": "echo \"Error: no test specified\" && exit 1"
+ "build": "electron-builder --win --x64",
+ "pkg": "pkg . --out-path=./dist/",
+ "package": "electron-builder build --win --x64"
},
"dependencies": {
"@alicloud/pop-core": "^1.7.10",
"@alicloud/sms-sdk": "^1.1.6",
- "async": "^3.1.0",
+ "async": "^3.2.4",
"await-busboy": "^1.0.3",
"axios": "^0.21.4",
"baidu-aip-sdk": "^2.0.2",
"bcrypt": "^5.0.1",
"crypto-js": "^4.0.0",
"debug": "^2.6.3",
+ "express": "^4.18.2",
"formidable": "^1.2.2",
"jpush-async": "^4.0.2",
"jsonwebtoken": "^8.5.0",
@@ -37,19 +42,57 @@
"koa-static": "^3.0.0",
"koa-views": "^5.2.1",
"koa2-cors": "^2.0.6",
- "log4js": "^4.4.0",
+ "log4js": "^6.4.4",
"node-gyp": "^8.2.0",
"node-schedule": "^1.3.2",
"node-uuid": "^1.4.8",
- "nodemailer": "^6.6.0",
- "officegen": "^0.6.3",
+ "nodemailer": "^6.7.3",
+ "officegen": "^0.6.5",
+ "protobufjs": "^6.11.3",
"pug": "^3.0.2",
"request": "^2.88.2",
- "socket.io": "^4.1.2",
+ "socket.io": "^4.4.1",
"solarlunar": "^2.0.7",
"ueditor": "^1.2.3"
},
"devDependencies": {
- "nodemon": "^2.0.7"
+ "electron": "^8.2.0",
+ "electron-builder": "^22.4.1",
+ "nodemon": "^2.0.20",
+ "webpack": "^5.74.0",
+ "webpack-cli": "^4.10.0"
+ },
+ "build": {
+ "electronDownload": {
+ "mirror": "https://npm.taobao.org/mirrors/electron"
+ },
+ "productName": "搴旂敤鏈嶅姟鍚庡彴",
+ "appID": "com.sn.appnet",
+ "copyright": "copyright @2021 wr",
+ "extends": null,
+ "directories": {
+ "output": "release"
+ },
+ "mac": {
+ "category": "public.app-category.developer-tools",
+ "target": "default",
+ "icon": "./public/icon.icns"
+ },
+ "win": {
+ "icon": "./public/icon.ico",
+ "target": [
+ {
+ "icon": "./public/icon.ico",
+ "target": [
+ {
+ "target": "nsis",
+ "arch": [
+ "x64"
+ ]
+ }
+ ]
+ }
+ ]
+ }
}
}
--
Gitblit v1.9.1