Deploying a 700MB Shaded Jar #176
-
|
Is it possible to bundle a 700mb + shaded jar? I added a big dependency and now its past the limit of NPM i think |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 4 replies
-
|
I think that will probably be too big for npm. they don't have a hard limit afaik, but they recommend keeping bundle under 50 megs. If you deploy to github releases instead then that size shouldn't be a problem. What is in the jar? Can you post jar contents? Maybe there's something that can be trimmed. |
Beta Was this translation helpful? Give feedback.
-
|
I see that your shaded jar has javafx embedded also. If you change to not using a shaded jar, but instead do an executable jar with dependent jars in the lib directory, then jdeploy will strip out the javafx deps for publishing as they aren't needed, because JavaFX is included in the runtime. That will save you 50-100mb. That jar listing doesn't appear to have any native libs, which is odd for such a large jar. Can you list the contents and include the sizes? |
Beta Was this translation helpful? Give feedback.
-
|
Do you need to see my codebase? Maybe I'll just do the github releases how can i set that up? |
Beta Was this translation helpful? Give feedback.
-
|
Easiest way is to
If you want to automate things, you can also set up a workflow to publish on every commit and/or every release. |
Beta Was this translation helpful? Give feedback.
-
|
Try adding a readme to that repository first. |
Beta Was this translation helpful? Give feedback.
-
|
I have made a few improvements for GitHub publishing in the desktop app. Please give it another try. If you exit the app, and re-open it, it should automatically download the latest changes. |
Beta Was this translation helpful? Give feedback.
Easiest way is to
If you want to automate things, you can also set up a workflow to publish on every commit and/or every release.