add icon file and update window instantiation code
This commit is contained in:
parent
aefb5daf3d
commit
a0fa0c7062
Binary file not shown.
After Width: | Height: | Size: 3.0 KiB |
|
@ -12,6 +12,7 @@
|
||||||
*/
|
*/
|
||||||
import { app, BrowserWindow } from 'electron';
|
import { app, BrowserWindow } from 'electron';
|
||||||
import { autoUpdater } from 'electron-updater';
|
import { autoUpdater } from 'electron-updater';
|
||||||
|
import path from 'path';
|
||||||
import log from 'electron-log';
|
import log from 'electron-log';
|
||||||
import MenuBuilder from './menu';
|
import MenuBuilder from './menu';
|
||||||
|
|
||||||
|
@ -70,7 +71,8 @@ app.on('ready', async () => {
|
||||||
mainWindow = new BrowserWindow({
|
mainWindow = new BrowserWindow({
|
||||||
show: false,
|
show: false,
|
||||||
width: 1024,
|
width: 1024,
|
||||||
height: 728
|
height: 728,
|
||||||
|
icon: path.join(__dirname, 'icons/64x64.png')
|
||||||
});
|
});
|
||||||
|
|
||||||
mainWindow.loadURL(`file://${__dirname}/app.html`);
|
mainWindow.loadURL(`file://${__dirname}/app.html`);
|
||||||
|
|
Loading…
Reference in New Issue