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.