In a application I made, I put my resources files to a folder(named YoutubeAudioAutoDownloader-resources
) and made sure it worked when i put the folder next to .jar file of my app.
And When I use jpackage
to make a exe installer with following cmd code: (sorry for dirty code because of my terrible directory arrangement, only part I want to stress is --type
and --resource-dir
options)
set jh=D:\development\jdk-14\bin
set appname=YoutubeAudioAutoDownloader v1.2.2
pushd %jh%
jpackage --type app-image --name "%appname%" --input "%~dp0packaging\jar" --dest "%~dp0packaging" --main-jar "YoutubeAudioAutoDownloader v1.2.2.jar" --main-class "com.awidesky.YoutubeClipboardAutoDownloader.Main" --resource-dir "%~dp0release.v1.2.1\YoutubeAudioAutoDownloader-resources" --icon "%~dp0icon\icon.ico
pause
I got question:
Where should I put my YoutubeAudioAutoDownloader-resources
folder? in app
folder of my app image folder? or I don't have to do because of --resource-dir
option? (I'm not sure whether I even know correctly about the option)