Skip to content

Commit

Permalink
Updated cargo configuration and fixed library loading
Browse files Browse the repository at this point in the history
  • Loading branch information
JetpackDuba committed Jul 14, 2024
1 parent a0e1121 commit d97ac18
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ build/
.cxx
rs/target/
rs/Cargo.lock
src/main/resources/*gitnuro_rs*
5 changes: 4 additions & 1 deletion rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/main/kotlin/com/jetpackduba/gitnuro/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit d97ac18

Please sign in to comment.