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