Skip to content

kawaiiDango/pano-native-components

Repository files navigation

Native Components for Pano Scrobbler

A JNI lib, used for accessing some native APIs on desktop, that are not possible with JVM.

Build

cargo build --release

Linux needs additional dependencies listed at tauri-apps/wry

Test

javac -h . PanoNativeComponents.java

cargo build --release && javac -d . PanoNativeComponents.java && java -Djava.library.path=target/release/ com.arn.scrobble.PanoNativeComponents

or (if Powershell)

cargo build --release && javac -d . PanoNativeComponents.java && java "-Djava.library.path=target/release/" com.arn.scrobble.PanoNativeComponents

Package

cp target/release/pano_native_components.dll pano-scrobbler-dir/composeApp/resources/windows-x64/
cp target/release/native_webview.dll pano-scrobbler-dir/composeApp/resources/windows-x64/
cp target/release/libpano_native_components.so pano-scrobbler-dir/composeApp/resources/linux-x64/
cp target/release/libnative_webview.so pano-scrobbler-dir/composeApp/resources/linux-x64/

I used code from these projects as a reference:

https://github.com/Mange/mpris-rs

https://github.com/KDE/kdeconnect-kde

License

SPDX-License-Identifier: GPL-3.0-or-later

About

A JNI lib, used for accessing some native APIs on desktop, used by Pano Scrobbler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages