diff --git a/.gitignore b/.gitignore index 20c62d1e..ea951af0 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ build/ .cxx rs/target/ rs/Cargo.lock +src/main/resources/*gitnuro_rs* diff --git a/rs/Cargo.toml b/rs/Cargo.toml index dc03b9eb..5ce4e1f2 100644 --- a/rs/Cargo.toml +++ b/rs/Cargo.toml @@ -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 \ No newline at end of file diff --git a/src/main/kotlin/com/jetpackduba/gitnuro/App.kt b/src/main/kotlin/com/jetpackduba/gitnuro/App.kt index 39afc743..74996759 100644 --- a/src/main/kotlin/com/jetpackduba/gitnuro/App.kt +++ b/src/main/kotlin/com/jetpackduba/gitnuro/App.kt @@ -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()