First, apologies if this should actually go in Software Engineering. I'm not entirely sure where to put this.
Background: I'm building a Java game that I want to be able to run on any system that runs Java. However, the game needs to talk to an SQLite database.
As far as I'm aware, all of the drivers that allow Java to talk to SQLite are device specific, and some devices are not supported by SQLite drivers, such as the Apple M1 processor.
(Apparently there is some kind of workaround for this one (Caused by: java.lang.Exception: No native library is found for os.name=Mac and os.arch=aarch64. path=/org/sqlite/native/Mac/aarch64), but I don't understand most of the steps involved as I am unfamiliar with Kapt, Room, and Graydle)
So my question is, how can I create an install script that will automatically ensure this dependency is fulfilled when the player runs the game? (regardless of the player's OS)
The only thing I could think of was to download the source code for the SQLite driver (from https://www.sqlite.org/download.html) and compile it locally on the user's machine. But it doesn't seem to come with a makefile (and maybe not everyone will have C installed?)
Any help would be appreciated. (Including a link to download the SQLite aarch .jar file).