Skip to content

Commit

Permalink
Fix www for Electron (#1964)
Browse files Browse the repository at this point in the history
  • Loading branch information
fortuna authored Apr 10, 2024
1 parent 1089944 commit 46571bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/electron/electron-builder.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/electron/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 46571bf

Please sign in to comment.