Skip to content

Commit 1444bf0

Browse files
committed
fix: app not loading with Electron v11
1 parent 5a4b2b7 commit 1444bf0

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

generators/app/templates/_.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
/platforms
1717

1818
# Electron
19-
/dist.electron
19+
/dist-electron
20+
/dist-packages
2021
/electron.main.js
2122

2223
# IDEs and editors

generators/app/templates/__electron.electron.main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function createWindow() {
2424
mainWindow.loadURL('http://localhost:4200');
2525
} else {
2626
// Load the index.html of the app.
27-
mainWindow.loadFile('dist.electron/index.html');
27+
mainWindow.loadFile('dist-electron/index.html');
2828
}
2929
}
3030

generators/app/templates/_package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"electron:compile": "tsc --project tsconfig.electron.json",
4545
"electron:run": "<%= run('electron:compile') %> && electron .",
4646
"electron:build": "<%= run('electron:compile') %> && <%= run('write:env') %> && ng build --prod --base-href ./ --output-path dist-electron",
47-
"electron:package:common": "electron-packager . --overwrite --out=dist.packages --ignore=\"/(platforms|plugins|docs|www|reports|e2e|src)\"",
47+
"electron:package:common": "electron-packager . --overwrite --out=dist-packages --ignore=\"/(platforms|plugins|docs|www|reports|e2e|src)\"",
4848
<% if (props.desktop.includes('windows')) { -%>
4949
"electron:package:windows": "<%= run('electron:package:common') %> -- --platform=win32 --arch=x64 --icon=./resources/win/icon.ico",
5050
<% } -%>

generators/app/templates/docs/__electron.electron.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Alternatively, you can build a package for one specific target platform using:
5353
npm run electron:package:<windows|mac|linux>
5454
```
5555

56-
The build packages will be then located in the `dist.packages` folder.
56+
The build packages will be then located in the `dist-packages` folder.
5757

5858
> Note: in order to build Windows packages from non-Windows platform, you need to install
5959
> [Wine](https://www.winehq.org) 1.6 or later.

0 commit comments

Comments
 (0)