You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constfs=require('fs');constICON_PATH=path.join(__dirname,"img","icon-32.png")functioncheckIconPath(iconPath){if(fs.existsSync(iconPath)){return;}else{console.error(`Not exists ${iconPath}`);process.exit(1);}}checkIconPath(ICON_PATH);functioncreateWindow(){// Create the browser window.constmainWindow=newBrowserWindow({width: 800,height: 600,webPreferences: {preload: path.join(__dirname,'preload.js'),icon: nativeImage.createFromPath(ICON_PATH),},icon: nativeImage.createFromPath(ICON_PATH),})// and load the index.html of the app.mainWindow.loadFile('index.html')// Open the DevTools.// mainWindow.webContents.openDevTools()}// ...// ...// ...
The text was updated successfully, but these errors were encountered:
This doesn't show any
icon*.png
π’ , some workaround? Greetings.node version : v22.7.0
Files:
Package.json
Main.js
The text was updated successfully, but these errors were encountered: