Skip to content

Java 8+ JNI wrapper to the starship battery crate.

License

Notifications You must be signed in to change notification settings

LostLuma/battery

Repository files navigation

Battery

Java 8+ JNI wrapper to the starship battery crate.

Usage

The library can be installed from the releases repository on maven.lostluma.net in two variants:

  • default: Downloads, validates, and caches the dynamic library on demand. Saves bandwidth and disk space.
  • bundled: Contains the dynamic library for all platforms. Recommended if first application startup may be offline.

The dynamic library comes prebuilt for the following platforms:

aarch64 amd64 riscv64
Linux yes yes yes
MacOS yes yes
Windows yes yes

Running on other platforms is also possible, however some manual setup is required:
First build the project with Cargo, then set the battery.natives.path system property to the file path.