Skip to content

Package from single platform to multiple platforms #247

Open
@Osiris-Team

Description

@Osiris-Team

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:

  1. Check which platforms we want to package for.
  2. Check if the JDKs for those platforms are already installed inside the temp folder.
  3. If not download and unpack them there (on Windows temp path could look like
    this C:\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:
image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions