Have you played around making executables with graalvm? #37
-
|
Do you by chance have any tips about producing an image via graalvm for a I was hoping I'd be able to do: But when doing that I end up with: After you try to run the executable it creates. Due to crossterm, is there any special things or flags that need to be used when making an image this way? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
|
Yes, it does work! However, one manual step is needed, because graalvm has some trouble with the path structure i inherited from the SBT plugin. I'll post details about the manual step once I'm on a computer, in some hours |
Beta Was this translation helpful? Give feedback.
-
|
See #28 for now |
Beta Was this translation helpful? Give feedback.
-
|
The graalvm release seems delayed until late june now. maybe time to find a better solution here in the interim. it should really just be some name standard graalvm is able to pick up - maybe replace |
Beta Was this translation helpful? Give feedback.
-
|
I released 0.0.6 with the fix for this - try it out! the bleep script for creating native images looks like this after the removal of all the workarounds https://github.com/oyvindberg/tui-scala/blob/master/scripts/src/scala/tui/scripts/GenNativeImage.scala |
Beta Was this translation helpful? Give feedback.
Ok, so looking at graalvm milestones it looks like they are aiming to finally release the new version in nine days, which means that I'll wait for that and then polish this experience afterwards.
In the meantime what you need to do is this:
Extract the native library you want to load from crossterm jar.
Copy the library for you platform so it loses the directory prefix
for instance
native/arm64-darwin/libcrossterm…