Vatuu / discord-rpc

Java Wrapper of the Discord-RPC Library for Discord Rich Presence.
MIT License
194 stars 42 forks source link

Suggestion: Move native libs into separate directory in jar #14

Closed Sirse closed 6 years ago

Sirse commented 6 years ago

Suggestion: Move native libs into a separate directory in .jar For now, jar application with extracted discord-rpc library seems unstructured (we have few dirs with single files). Maybe just put all libs into one directory called natives?

Vatuu commented 6 years ago

The native libraries are included into the jar archive at the build process, using a separate repository just storing the natives. The natives must be extracted at runtime since they need to be loaded by the OS first before JNA is able to load it. They are stored in your TEMP directory for the duration of the runtime before they are being deleted again. (The upcoming 1.5 Version will move the temp artefact to your home directory, instead of the TEMP directory.)