fvarrui / JavaPackager

:package: Gradle/Maven plugin to package Java applications as native Windows, MacOS, or Linux executables and create installers for them.
GNU General Public License v3.0
1.07k stars 134 forks source link

generateSetup ico #361

Closed wendao8469759 closed 8 months ago

wendao8469759 commented 1 year ago

I want to know, on the Windows platform, after configuring true, how should I configure the icon for generating the installation program? I tried using , but it didn't work.

fvarrui commented 1 year ago

Hi @wendao8469759! Right now same icon is used for EXE and Setup installer. You can set it with winConfig.icoFile property. I hope it helps

wendao8469759 commented 1 year ago

Mmm-hmm. I've configured it to use 'mvn clean package,' but after packaging, the program still hasn't changed the icon. However, I closed the command line and shut down IDEA. After restarting and running 'mvn clean package' again, the icon changed. I suspect it might have been using cached data?

fvarrui commented 8 months ago

This behaviour is caused by the Windows Explorer cache. If you kill the explorer.exe process and start it again, this problem is solved. Or just wait a while.