From 815a97250ba0136edb6acfd8e3cf93472847b27b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=9C=96?= Date: Fri, 1 Jul 2022 16:30:15 +0800 Subject: [PATCH] =?UTF-8?q?fix(build):=20=E5=A4=84=E7=90=86=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E6=8A=A5=E9=94=99=E4=BB=A5=E5=8F=8A=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E7=9A=84APP=E7=99=BD=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron/main/index.ts | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/electron/main/index.ts b/electron/main/index.ts index 93ea7b4..93b95e7 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -26,6 +26,7 @@ let win: BrowserWindow | null = null // Here, you can also use other preload const preload = join(__dirname, '../preload/index.js') const url = `http://${process.env.VITE_DEV_SERVER_HOST}:${process.env.VITE_DEV_SERVER_PORT}` +const indexHtml = 'dist/index.html' async function createWindow() { win = new BrowserWindow({ diff --git a/package.json b/package.json index 31f7a35..a51a514 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "electron": "^19.0.3", "electron-builder": "^23.0.3", "typescript": "^4.7.3", - "vite": "^3.0.0-beta.5", + "vite": "^2.9.13", "vite-plugin-electron": "^0.6.1", "vite-plugin-resolve": "^2.1.2", "vue": "^3.2.36",