fix: Instructions to build & Update dependencies to work properly
parent
f0f3270b4f
commit
d7e93f0f7f
|
@ -5,9 +5,9 @@ version = "0.1.0"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
[dependencies]
|
[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"]}
|
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"
|
log = "0.4"
|
||||||
once_cell = "1.9"
|
once_cell = "1.17"
|
||||||
pretty_env_logger = "0.4"
|
pretty_env_logger = "0.4"
|
||||||
|
|
33
README.md
33
README.md
|
@ -2,6 +2,39 @@
|
||||||
|
|
||||||
GTK4 Revolt client
|
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
|
## Useful References
|
||||||
|
|
||||||
https://world.pages.gitlab.gnome.org/Rust/libadwaita-rs/stable/latest/docs/libadwaita/
|
https://world.pages.gitlab.gnome.org/Rust/libadwaita-rs/stable/latest/docs/libadwaita/
|
||||||
|
|
Loading…
Reference in New Issue