Fixed mac & windows support for the new SSH implementation.

Fixes #130
This commit is contained in:
Abdelilah El Aissaoui 2023-09-20 16:21:57 +02:00
parent 4aa581cf1f
commit 5b7ed8a719
No known key found for this signature in database
GPG key ID: 7587FC860F594869
2 changed files with 3 additions and 3 deletions

View file

@ -233,13 +233,13 @@ fun copyRustBuild() {
val originLib = when (currentOs()) {
OS.LINUX -> "libgitnuro_rs.so"
OS.WINDOWS -> "gitnuro_rs.dll"
OS.MAC -> "libgitnuro_rs.so" //TODO or is it a dylib? must be tested
OS.MAC -> "libgitnuro_rs.dylib"
}
val destinyLib = when (currentOs()) {
OS.LINUX -> "libuniffi_gitnuro.so"
OS.WINDOWS -> "uniffi_gitnuro.dll"
OS.MAC -> "libuniffi_gitnuro.so" //TODO or is it a dylib? must be tested
OS.MAC -> "libuniffi_gitnuro.dylib"
}
val originFile = File(workingDir, originLib)

View file

@ -13,7 +13,7 @@ name = "gitnuro_rs"
uniffi = { version = "0.24.1" }
notify = "6.0.1"
thiserror = "1.0.43"
libssh-rs = "0.2.1"
libssh-rs = { version = "0.2.1", features = [ "vendored", "vendored-openssl" ] }
[build-dependencies]
uniffi = { version = "0.24.1", features = [ "build" ] }