Skip to content

Commit

Permalink
Fixed mac & windows support
Browse files Browse the repository at this point in the history
  • Loading branch information
JetpackDuba committed Sep 20, 2023
1 parent 4aa581c commit 1e0966d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" ] }
Expand Down

0 comments on commit 1e0966d

Please sign in to comment.