Fix linux icon

This commit is contained in:
Thomas Nordquist
2019-01-15 12:51:21 +01:00
parent 71c06b3f74
commit 97a1cf72c5
2 changed files with 6 additions and 1 deletions

View File

@@ -2,6 +2,8 @@ const { app, BrowserWindow } = require('electron')
const { autoUpdater } = require("electron-updater")
const log = require('electron-log');
const { ConnectionManager, updateNotifier } = require('./backend/build/backend/src/index.js')
const fs = require('fs')
const path = require('path')
autoUpdater.logger = log;
autoUpdater.logger.transports.file.level = 'info';
@@ -15,15 +17,18 @@ connectionManager.manageConnections()
let mainWindow
function createWindow () {
const icon = path.join(__dirname, 'icon.png')
// Create the browser window.
mainWindow = new BrowserWindow({
width: 1024,
height: 700,
webPreferences: {
nodeIntegration: true
}
},
icon
})
console.log(icon)
// and load the index.html of the app.
mainWindow.loadFile('app/index.html')

BIN
icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB