Updated cargo configuration and fixed library loading

This commit is contained in:
Abdelilah El Aissaoui 2024-07-15 01:46:57 +02:00
parent a0e1121eda
commit d97ac18676
No known key found for this signature in database
GPG Key ID: 7587FC860F594869
3 changed files with 6 additions and 2 deletions

1
.gitignore vendored
View File

@ -15,3 +15,4 @@ build/
.cxx
rs/target/
rs/Cargo.lock
src/main/resources/*gitnuro_rs*

View File

@ -11,5 +11,8 @@ name = "gitnuro_rs"
notify = "6.1.1"
thiserror = "1.0.56"
libssh-rs = { version = "0.3.3", features = ["vendored", "vendored-openssl"] }
kotars = { path = "/home/abde/Projects/Rust/kotars/kotars" } #{ git = "https://github.com/JetpackDuba/kotars.git" }
kotars = { git = "https://github.com/JetpackDuba/kotars.git" }
jni = "0.21.1"
[profile.release]
strip = true

View File

@ -175,7 +175,7 @@ class App {
else -> throw Exception("OS not supported")
}
val gitnuroRsInputStream = javaClass.getResourceAsStream(gitnuroRsName)
val gitnuroRsInputStream = javaClass.getResourceAsStream("/$gitnuroRsName")
gitnuroRsInputStream?.use { inputStream ->
val tempDir = tempFilesManager.tempDir()