From 68fe4bf3b77dc56f1681634ad7125a7a988aa1f4 Mon Sep 17 00:00:00 2001 From: younglei Date: Fri, 1 Jul 2022 17:09:30 +0800 Subject: [PATCH] fix: index.html path --- electron/main/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electron/main/index.ts b/electron/main/index.ts index 93b95e7..6c38268 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -26,7 +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' +const indexHtml = join(ROOT_PATH.dist, 'index.html') async function createWindow() { win = new BrowserWindow({