diff --git a/main/index.ts b/main/index.ts index 4e3c321..30b61e4 100644 --- a/main/index.ts +++ b/main/index.ts @@ -1,3 +1,4 @@ +import { join } from 'path' import { app, BrowserWindow } from 'electron' const WINDOWS: Record = { @@ -11,7 +12,7 @@ function mainWin() { }) if (app.isPackaged) { - WINDOWS.main.loadFile('') + WINDOWS.main.loadFile(join(__dirname, '../react-ts/index.html')) } else { WINDOWS.main.loadURL(`http://127.0.0.1:${process.env.PORT}`) }