diff --git a/README.md b/README.md
index a78c015..6ae3ae4 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
[](https://gitee.com/dromara/electron-egg/stargazers)
-
🎉🎉🎉 ElectronEgg V3.8.0已发布! 🎉🎉🎉
+🎉🎉🎉 ElectronEgg V3.9.0已发布! 🎉🎉🎉
@@ -22,8 +22,8 @@
- 🍩 **为什么使用?** 桌面软件(办公方向、 个人工具),仍然是未来十几年PC端需求之一,提高工作效率
- 🍉 **简单:** 只需懂 JavaScript
- 🍑 **愿景:** 所有开发者都能学会桌面软件研发
-- 🍰 **gitee:** https://gitee.com/dromara/electron-egg **3900+**
-- 🍨 **github:** https://github.com/dromara/electron-egg **1100+**
+- 🍰 **gitee:** https://gitee.com/dromara/electron-egg **4100+**
+- 🍨 **github:** https://github.com/dromara/electron-egg **1200+**
- 🏆 码云最有价值开源项目

diff --git a/README.zh-CN.md b/README.zh-CN.md
index a78c015..6ae3ae4 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -1,7 +1,7 @@
[](https://gitee.com/dromara/electron-egg/stargazers)
-
🎉🎉🎉 ElectronEgg V3.8.0已发布! 🎉🎉🎉
+🎉🎉🎉 ElectronEgg V3.9.0已发布! 🎉🎉🎉
@@ -22,8 +22,8 @@
- 🍩 **为什么使用?** 桌面软件(办公方向、 个人工具),仍然是未来十几年PC端需求之一,提高工作效率
- 🍉 **简单:** 只需懂 JavaScript
- 🍑 **愿景:** 所有开发者都能学会桌面软件研发
-- 🍰 **gitee:** https://gitee.com/dromara/electron-egg **3900+**
-- 🍨 **github:** https://github.com/dromara/electron-egg **1100+**
+- 🍰 **gitee:** https://gitee.com/dromara/electron-egg **4100+**
+- 🍨 **github:** https://github.com/dromara/electron-egg **1200+**
- 🏆 码云最有价值开源项目

diff --git a/electron/config/bin.js b/electron/config/bin.js
index 6af78e8..eac4fa7 100644
--- a/electron/config/bin.js
+++ b/electron/config/bin.js
@@ -25,23 +25,27 @@ module.exports = {
},
/**
- * 前端构建
+ * 构建
* ee-bin build
*/
build: {
- directory: './frontend',
- cmd: 'npm',
- args: ['run', 'build'],
+ frontend: {
+ directory: './frontend',
+ cmd: 'npm',
+ args: ['run', 'build'],
+ }
},
/**
* 移动资源
- * ee-bin rd
+ * ee-bin move
*/
- rd: {
- dist: './frontend/dist',
- target: './public/dist'
- },
+ move: {
+ frontend_dist: {
+ dist: './frontend/dist',
+ target: './public/dist'
+ }
+ },
/**
* 预发布模式(prod)
@@ -79,20 +83,15 @@ module.exports = {
* ee-bin exec
*/
exec: {
- go: {
- directory: './go',
- cmd: 'go',
- args: ['run', './main.go', '--env=dev'],
- },
- node_version: {
+ node_v: {
directory: './',
cmd: 'node',
args: ['-v'],
},
- npm_version: {
+ npm_v: {
directory: './',
cmd: 'npm',
args: ['-v'],
},
- },
+ },
};
\ No newline at end of file
diff --git a/package.json b/package.json
index 63709e4..81a37c0 100644
--- a/package.json
+++ b/package.json
@@ -1,15 +1,15 @@
{
"name": "ee",
- "version": "3.8.0",
+ "version": "3.9.0",
"description": "A fast, desktop software development framework",
"main": "main.js",
"scripts": {
"dev": "ee-bin dev",
"dev-frontend": "ee-bin dev --serve=frontend",
"dev-electron": "ee-bin dev --serve=electron",
- "build-frontend": "ee-bin build",
+ "build-frontend": "ee-bin build --cmds=frontend && ee-bin move --flag=frontend_dist",
"start": "ee-bin start",
- "rd": "ee-bin rd",
+ "rd": "ee-bin move --flag=frontend_dist",
"encrypt": "ee-bin encrypt",
"clean": "ee-bin clean",
"icon": "ee-bin icon",
@@ -46,7 +46,7 @@
"devDependencies": {
"@electron/rebuild": "^3.2.13",
"debug": "^4.3.3",
- "ee-bin": "^1.3.0",
+ "ee-bin": "^1.4.0",
"electron": "^21.4.4",
"electron-builder": "^23.6.0",
"eslint": "^5.13.0",
@@ -55,7 +55,7 @@
},
"dependencies": {
"dayjs": "^1.10.7",
- "ee-core": "^2.6.0",
+ "ee-core": "^2.7.0",
"electron-updater": "^5.3.0",
"lodash": "^4.17.21"
}