alex8088 / quick-start

An easy way to start a front-end project.
MIT License
248 stars 34 forks source link

Electron BrowserWindow can not be setted Icon on release #3

Closed elevenwin closed 1 year ago

elevenwin commented 1 year ago

Describe the bug

Scaffold:npm create @quick-start/electron

In debug mode, it is worked that icon was setted to the BrowserWindow 's property. After released, it is not worked. It's not allowed to add picture to the window, like Electron's Tray.(it was required a parameter as the icon path).

Used Scaffolding

create-electron

Used Package Manager

npm

Validations

alex8088 commented 1 year ago

@elevenwin , you can create a folder in root. e.g.

├──src
├──resources   # as public dir
│  └──icon.ico
└──package.json
elevenwin commented 1 year ago

It works,Thank you!!!