Description
Currently, the JDK path for other platforms needs to be specified manually, which means I have to download additional JDKs
for Linux and Mac, because I am on Windows and enter their paths.
I am proposing a solution to automate this:
- Check which platforms we want to package for.
- Check if the JDKs for those platforms are already installed inside the temp folder.
- If not download and unpack them there (on Windows temp path could look like
thisC:\Users\<username>\AppData\Local\Temp\JavaPackager
).
The jdkPath
from the plugin config xml could then be removed or made optional.
Additionally, we would add optional jdkVersion
(default 8) and jdkVendor
(default temurin).
I already got the download logic and API stuff implemented for another project,
so could use it for this one too:
PR would be ready in 1 hour.
Note that the above would probably make it possible to package from windows to all other platforms, but not from linux/mac to all other platforms, since the necessary native tools are not available on those platforms I guess.