From 48c236a68559d95bfa583a97a244dfb3f23bd6c9 Mon Sep 17 00:00:00 2001 From: gaoshuaixing Date: Tue, 22 Aug 2023 15:04:19 +0800 Subject: [PATCH] bin --- electron/config/bin.js | 11 ++++++++++- electron/config/config.default.js | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/electron/config/bin.js b/electron/config/bin.js index 8cfd1e2..f5a4623 100644 --- a/electron/config/bin.js +++ b/electron/config/bin.js @@ -14,7 +14,7 @@ module.exports = { cmd: 'npm run dev', hostname: 'localhost', port: 8080, - indexPath: 'view_example.html' + indexPath: 'index.html' }, electron: { directory: './', @@ -32,6 +32,15 @@ module.exports = { cmd: 'npm run build' }, + /** + * 移动资源 + * ee-bin rd + */ + rd: { + dist: './frontend/dist', + target: './public/dist' + }, + /** * 预发布模式(prod) * ee-bin start diff --git a/electron/config/config.default.js b/electron/config/config.default.js index eb64631..a772e8b 100644 --- a/electron/config/config.default.js +++ b/electron/config/config.default.js @@ -89,6 +89,7 @@ module.exports = (appInfo) => { key: '/public/ssl/localhost+1.key', cert: '/public/ssl/localhost+1.pem' }, + host: '127.0.0.1', port: 7071, cors: { origin: "*"