diff --git a/Cargo.lock b/Cargo.lock index 801d679..b5367d2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2584,6 +2584,15 @@ version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "28988d872ab76095a6e6ac88d99b54fd267702734fd7ffe610ca27f533ddb95a" +[[package]] +name = "openssl-src" +version = "111.25.0+1.1.1t" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3173cd3626c43e3854b1b727422a276e568d9ec5fe8cec197822cf52cfb743d6" +dependencies = [ + "cc", +] + [[package]] name = "openssl-sys" version = "0.9.63" @@ -2593,6 +2602,7 @@ dependencies = [ "autocfg", "cc", "libc", + "openssl-src", "pkg-config", "vcpkg", ] @@ -3373,6 +3383,7 @@ dependencies = [ "indexmap", "lazy_static", "nfd2", + "openssl", "reqwest", "serde", "serde_json", diff --git a/Cargo.toml b/Cargo.toml index bf81248..ddbca7c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,6 +22,7 @@ serde = { version = "1", features = [ "derive" ] } serde_json = "1" serde_qs = "0.8" smmdb-lib = { version = "2", git = "https://github.com/Tarnadas/smmdb-lib.git", features = [ "save" ], package = "smmdb" } +openssl = { version = "0.10", features = ["vendored"] } [profile] [profile.dev] diff --git a/README.md b/README.md index 6ded005..114ff7f 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,21 @@ For planned features, please visit the [Github issue page](https://github.com/Ta You can download Windows, Linux and MacOS binaries in the [Github release section](https://github.com/Tarnadas/smmdb-client/releases) +Depending on your operating system, extract the file and remplace _YOUROPERATINGSYSTEM_ with your operating system + +Extract the file: `tar xzvf smmdb-client-YOUROPERATINGSYSTEM.tar.gz` + +Run `./smmdb` + +#### on Ubuntu + +If you are on ubuntu, run the following command: + +``` +wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb +sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb +``` + ### via Cargo You can install SMMDB Client via Cargo: @@ -29,7 +44,14 @@ It is recommended to install Cargo via [Rustup](https://rustup.rs/) Before installing the client, run the following commands: -`sudo apt-get install cmake libfreetype6-dev libfontconfig1-dev xclip sudo libgtk-3-dev` +`sudo apt-get install cmake libfreetype6-dev libfontconfig1-dev xclip sudo libgtk-3-dev libssl-dev` + +You might also need to install the following: + +``` +wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb +sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb +``` #### nightly install (all OSs)