Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Platform-specific artifacts #148

Open
mgroth0 opened this issue Oct 1, 2022 · 3 comments
Open

Platform-specific artifacts #148

mgroth0 opened this issue Oct 1, 2022 · 3 comments
Labels
build An issue/PR related to build or CI multiplatform An issue/PR related to multiplatform
Milestone

Comments

@mgroth0
Copy link

mgroth0 commented Oct 1, 2022

I built a program using multik as a dependency and noticed that file size is huge.

Inside of the built shadow jar, the size of the entry containing all of the native libs for multik was 115MB, compressed.

I also noticed that the majority of that is unused if targeting only one OS:

Screen Shot 2022-10-01 at 7 33 31 PM

Can Multik be built for each OS in different artifacts, kind of like how JavaFX is? Then the developer can include whichever OSs they need to support, and minimize the size of the library if they only need to target one OS.

@devcrocod
Copy link
Collaborator

Yes you are right.
I already thought about it, with the division into different artifacts there is a certain difficulty, but this must be done.

@breandan
Copy link
Contributor

breandan commented Oct 5, 2022

In addition to platform-specific artifacts, it would be helpful if multik continued to distribute a single fat JAR containing all shared libraries for multiplatform builds. As a library author, I find this format more convenient to use, even though it produces a larger overall binary.

@mgroth0
Copy link
Author

mgroth0 commented Oct 5, 2022

Ideally both the multiplatform and the single platform jars can be available so that library users don't have to worry about including the right files and can make their choice easily.

@devcrocod devcrocod added this to the 0.3.0 milestone May 13, 2023
@devcrocod devcrocod added the build An issue/PR related to build or CI label May 13, 2023
@devcrocod devcrocod added the multiplatform An issue/PR related to multiplatform label Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build An issue/PR related to build or CI multiplatform An issue/PR related to multiplatform
Projects
None yet
Development

No branches or pull requests

3 participants