From 1e0966d2746dc8e14a6b56726f1539affa133a23 Mon Sep 17 00:00:00 2001 From: Abdelilah El Aissaoui Date: Wed, 20 Sep 2023 16:21:57 +0200 Subject: [PATCH] Fixed mac & windows support --- build.gradle.kts | 4 ++-- rs/Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index a3b4f913..705d10d2 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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) diff --git a/rs/Cargo.toml b/rs/Cargo.toml index 4f123909..b3fccc89 100644 --- a/rs/Cargo.toml +++ b/rs/Cargo.toml @@ -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" ] }