gaoshuaixing 3 years ago
parent
commit
8545647426

+ 1 - 1
app/controller/home.js

@@ -11,7 +11,7 @@ class HomeController extends BaseController {
     const { ctx } = this;
 
     const data = {
-      title: 'hello electron-egg'
+      title: 'hello ee'
     };
 
     await ctx.render('index.ejs', data);

+ 1 - 1
app/view/hello.ejs

@@ -6,6 +6,6 @@
   </head>
   <body>
     <h1><%= title %></h1>
-    <p>Welcome to electron-egg</p>
+    <p>Welcome to ee</p>
   </body>
 </html>

+ 2 - 2
electron/config/config.default.js

@@ -67,7 +67,7 @@ module.exports = (appInfo) => {
   /* egg服务 (可选) */
   config.egg = {
     enable: true, // 是否启用
-    title: 'electron-egg', // 进程的title属性标识(默认你的应用名称-英文)
+    title: 'ee', // 进程的title属性标识(默认你的应用名称-英文)
     port: 7068,
     hostname: '127.0.0.1',
     workers: 1 // 工作进程数据
@@ -87,7 +87,7 @@ module.exports = (appInfo) => {
 
   /* 被浏览器唤醒 (可选) */
   config.awakeProtocol = {
-    protocol: 'electron-egg', // 自定义协议名(默认你的应用名称-英文)
+    protocol: 'ee', // 自定义协议名(默认你的应用名称-英文)
     args: []
   };
 

+ 1 - 1
frontend/package.json

@@ -1,5 +1,5 @@
 {
-  "name": "electron-egg",
+  "name": "ee",
   "version": "0.1.0",
   "private": true,
   "scripts": {

+ 1 - 1
frontend/src/views/base/file/Index.vue

@@ -110,7 +110,7 @@ export default {
       action_url: process.env.VUE_APP_API_BASE_URL + '/api/example/uploadFile',
       image_info: [],
       num: 0,
-			dir_path: "D:\\www\\electron-egg",
+			dir_path: "D:\\www\\ee",
     };
   },
   methods: {

+ 1 - 1
frontend/vue.config.js

@@ -12,7 +12,7 @@ module.exports = {
       config
         .plugin('html')
         .tap(args => {
-          args[0].title= 'electron-egg' // 设置title
+          args[0].title= 'EE' // 设置title
           return args
         })
     },

+ 11 - 11
package.json

@@ -1,5 +1,5 @@
 {
-  "name": "electron-egg",
+  "name": "ee",
   "version": "2.0.0",
   "description": "A fast, desktop software development framework",
   "main": "main.js",
@@ -12,16 +12,16 @@
     "build-m": "electron-builder -m",
     "build-m-arm64": "electron-builder -m --arm64",
     "build-l": "electron-builder -l deb tar.xz",
-    "web-start": "egg-scripts start --daemon --title=electron-egg --ignore-stderr --env=prod --workers=1",
-    "web-stop": "egg-scripts stop --title=electron-egg",
+    "web-start": "egg-scripts start --daemon --title=ee --ignore-stderr --env=prod --workers=1",
+    "web-stop": "egg-scripts stop --title=ee",
     "web-dev": "egg-bin dev",
-    "rd": "node ./tools/replace_dist --dist_dir=./frontend/dist",
-    "compress": "node ./tools/code_compress --compress",
-    "restore": "node ./tools/code_compress --restore"
+    "rd": "ee-cli rd --dist_dir=./frontend/dist",
+    "compress": "ee-cli compress",
+    "restore": "ee-cli restore"
   },
   "build": {
-    "productName": "electron-egg",
-    "appId": "com.electron.electron-egg",
+    "productName": "ee",
+    "appId": "com.electron.ee",
     "copyright": "wallace5303",
     "directories": {
       "output": "out"
@@ -50,12 +50,12 @@
       "installerHeaderIcon": "./build/icons/icon.ico",
       "createDesktopShortcut": true,
       "createStartMenuShortcut": true,
-      "shortcutName": "Ee框架"
+      "shortcutName": "EE框架"
     },
     "publish": [
       {
         "provider": "generic",
-        "url": "https://github.com/wallace5303/electron-egg"
+        "url": "https://github.com/wallace5303/ee"
       }
     ],
     "mac": {
@@ -83,7 +83,7 @@
       ]
     }
   },
-  "repository": "https://github.com/wallace5303/electron-egg.git",
+  "repository": "https://github.com/wallace5303/ee.git",
   "keywords": [
     "Electron",
     "Egg"