Skip to content

Commit dba684b

Browse files
committed
👍 Fixed issue where compiling showed a blank screen
1 parent 3d04314 commit dba684b

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

electron-builder.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"output": "dist",
77
"buildResources": "static/app-icons"
88
},
9-
"files": ["build/**/*", "package.json", "filters"],
9+
"files": ["build/**/*", "package.json", "filters", "static/app-icons"],
1010
"publish": "github",
1111
"nsis": {
1212
"oneClick": false,

src/main/index.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,15 @@ app.on('ready', () => {
9696
appWindow.webContents.goBack();
9797
});
9898

99-
tray = new Tray(resolve(app.getAppPath(), 'src/shared/resources/icons/logo.png'))
99+
tray = new Tray(resolve(app.getAppPath(), 'static/app-icons/logo.png'))
100100
const contextMenu = Menu.buildFromTemplate([
101-
{ label: `Dot ${app.getVersion()}`, type: 'normal', enabled: false, icon: resolve(app.getAppPath(), 'src/shared/resources/icons/tray-icon.png') },
101+
{ label: `Dot ${app.getVersion()}`, type: 'normal', enabled: false, icon: resolve(app.getAppPath(), 'static/app-icons/tray-icon.png') },
102102
{ type: 'separator' },
103103
{ label: 'History', type: 'normal' },
104104
{ label: 'Bookmarks', type: 'normal' },
105105
{ label: 'Settings', type: 'normal' },
106106
{ type: 'separator' },
107-
{ label: `Quit Dot ${app.getVersion()}`, type: 'normal', role: 'quit', icon: resolve(app.getAppPath(), 'src/shared/resources/icons/tray-close.png') },
107+
{ label: `Quit Dot ${app.getVersion()}`, type: 'normal', role: 'quit', icon: resolve(app.getAppPath(), 'static/app-icons/tray-close.png') },
108108
])
109109
tray.setToolTip(`Dot ${app.getVersion()}`)
110110
tray.setContextMenu(contextMenu)
@@ -127,8 +127,6 @@ app.on('ready', () => {
127127

128128
appWindow = new AppWindow();
129129

130-
appWindow.webContents.loadURL('http://localhost:4444/app.html');
131-
132130
autoUpdater.on('update-downloaded', ({ version }) => {
133131
appWindow.webContents.send('update-available', version);
134132
});

static/app-icons/tray-close.png

143 Bytes
Loading

static/app-icons/tray-icon.png

597 Bytes
Loading

0 commit comments

Comments
 (0)