From d7e93f0f7f7f91dba8d34477d98102a7a8c4a6cd Mon Sep 17 00:00:00 2001 From: kabylake1 Date: Fri, 17 Mar 2023 02:16:25 -0500 Subject: [PATCH] fix: Instructions to build & Update dependencies to work properly --- Cargo.toml | 6 +++--- README.md | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5845619..6f0b86c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,9 +5,9 @@ version = "0.1.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -adw = {version = "0.1.1", package = "libadwaita"} +adw = {version = "0.2.0-alpha.1", package = "libadwaita"} gettext-rs = {version = "0.7", features = ["gettext-system"]} -gtk = {version = "0.4.7", package = "gtk4"} +gtk = {version = "0.4.9", package = "gtk4"} log = "0.4" -once_cell = "1.9" +once_cell = "1.17" pretty_env_logger = "0.4" diff --git a/README.md b/README.md index ac54458..deca258 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,39 @@ GTK4 Revolt client +## Installation + +First, make sure the following components are installed: + +* (The meson build system)[https://mesonbuild.com/Quick-guide.html] +* (The Rust toolchain)[https://www.rust-lang.org/tools/install] +* (The GTK4 library)[https://github.com/ToshioCP/Gtk4-tutorial/blob/main/gfm/sec2.md] +* (The Adwaita library)[https://github.com/GNOME/libadwaita] + +After installing the necessary components, set up `builddir`: +```sh +meson setup builddir +``` + +Once this is done, compile the app: +```sh +cd builddir && meson compile +``` + +Unfortunely, in some cases it is difficult to utilize `meson install` properly. In this case the user can just specify the prefix to the current build directory: +```sh +# inside builddir +meson configure -D `pwd` +``` + +When this is done, the resources will be located inside the `share` folder on the build directory. + +If the app is not installed with `meson install`, you'll need to tell glib that the schemas reside inside the `data/` folder; therefore, run the client with this command: +```sh +# inside builddir +XDG_DATA_DIRS="$XDG_DATA_DIRS:$PWD/share" ./src/mutiny +``` + ## Useful References https://world.pages.gitlab.gnome.org/Rust/libadwaita-rs/stable/latest/docs/libadwaita/