Skip to content

Commit 1faf945

Browse files
committed
🤖 fix: Update HTML file paths in desktop/main.ts
splash.html and index.html are in dist/ but main.js is now in dist/desktop/, so paths need to be ../splash.html and ../index.html instead of splash.html and index.html. This fixes the E2E tests - the app window wasn't loading because it couldn't find index.html.
1 parent 625a9ba commit 1faf945

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/desktop/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ async function showSplashScreen() {
255255
});
256256

257257
// Wait for splash HTML to load
258-
await splashWindow.loadFile(path.join(__dirname, "splash.html"));
258+
await splashWindow.loadFile(path.join(__dirname, "../splash.html"));
259259

260260
// Wait for the window to actually be shown and rendered before continuing
261261
// This ensures the splash is visible before we block the event loop with heavy work
@@ -465,7 +465,7 @@ function createWindow() {
465465
}
466466
} else {
467467
// Production mode: load built files
468-
const htmlPath = path.join(__dirname, "index.html");
468+
const htmlPath = path.join(__dirname, "../index.html");
469469
console.log(`[${timestamp()}] [window] Loading from file: ${htmlPath}`);
470470
void mainWindow.loadFile(htmlPath);
471471
}

0 commit comments

Comments
 (0)