From 588374f55570b3d172aa33026cfead36e4239392 Mon Sep 17 00:00:00 2001 From: Vinicius Fortuna Date: Wed, 10 Apr 2024 14:56:21 -0400 Subject: [PATCH] Fix www for Electron --- src/electron/electron-builder.json | 2 +- src/electron/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/electron/electron-builder.json b/src/electron/electron-builder.json index c182416a39..7993f6c215 100644 --- a/src/electron/electron-builder.json +++ b/src/electron/electron-builder.json @@ -1,5 +1,5 @@ { - "files": ["build/electron", "www", "client/resources/tray", "!node_modules/electron"], + "files": ["build/electron", "client/www", "client/resources/tray", "!node_modules/electron"], "asarUnpack": ["output", "tools"], "artifactName": "Outline-Client.${ext}", "directories": { diff --git a/src/electron/index.ts b/src/electron/index.ts index 70c06f2f44..f0afcd1990 100644 --- a/src/electron/index.ts +++ b/src/electron/index.ts @@ -145,7 +145,7 @@ function setupWindow(): void { mainWindow.setIcon(path.join(app.getAppPath(), 'build', 'icons', 'png', '64x64.png')); } - const pathToIndexHtml = path.join(app.getAppPath(), 'www', 'index_electron.html'); + const pathToIndexHtml = path.join(app.getAppPath(), 'client', 'www', 'index_electron.html'); const webAppUrl = new url.URL(`file://${pathToIndexHtml}`); // Debug mode, etc.