I have JavaFx ShowTime.jar and config folder. To run the software, the config folder needs to be in a same directory as ShowTime.jar. In side the config folder, there are two folders : preferences and plugins.
I can bundle the config folder with the jar using the following codes:
javapackager -deploy -native dmg -name ShowTime -BappVersion=1.0.0 -Bicon=ShowTime.icns -srcdir . -srcfiles config -srcfiles ShowTime.jar -appclass ShowTime -outdir out -v
If user install the software first time, copy jar and config folder to installation directory. This is achieved.
When user install new release, I want to replace the plugins folder but keep the existing preferences folder. I dont know how to do this?
Many thanks.