oyvindberg / tui-scala

Beautiful Text-based User Interfaces for Scala
MIT License
207 stars 11 forks source link

Remove need to workaround jni library path for native image (fixes #28) #47

Closed oyvindberg closed 1 year ago

oyvindberg commented 1 year ago

There is a long-standing bug involving resources in nested directories with graalvm. not sure why this doesn't affect everybody out there, including the sbt plugin where the naming standard comes from.

Anyway, let's change the mapping so instead of $native/$platform/libname we say $native_$platform_libname. For arm64/macOs it looks like this libnative-arm64-darwin-crossterm.dylib.

That should hopefully sort it out.