Commit f997b92c authored by Sophie Herold's avatar Sophie Herold

Update readme/contributing

parent 302bac1e
......@@ -7,7 +7,23 @@ Contributions of all kind and with all levels of experience are very welcome. Pl
Binding to objects defined in `.ui`-files are auto generated via
```
./build-aux/generate_ui_bindings.py
$ ./build-aux/generate_ui_bindings.py
```
You have to execute this script after adding, changing or removing ids from `.ui`-files. The bindings can be found in `src/ui/builder.rs`. Using only those bindings allows to catch all errors in accessing builder elements on compile time.
\ No newline at end of file
You have to execute this script after adding, changing or removing ids from `.ui`-files. The bindings can be found in `src/ui/builder.rs`. Using only those bindings allows to catch all errors in accessing builder elements on compile time.
## Debugging
The STDIO log level can be adjusted by setting the `RUST_LOG` to debug or trace. For example
```
$ RUST_LOG=trace cargo run
```
There is also the option to log to syslog
```
$ cargo run --syslog
```
However, flatpaks do not support syslog by default.
\ No newline at end of file
......@@ -28,19 +28,21 @@ Currently, scheduled backups are not supported. Excluding files from a backup vi
- [Vorta](https://flathub.org/apps/details/com.borgbase.Vorta), borg-backup as backend, supports scheduled backups, Qt frontend for advanced users
- [Déjà Dup Backups](https://flathub.org/apps/details/org.gnome.DejaDup), duplicity (librsync) as backend, supports scheduled backups, GTK frontend
## Build
## Building
You need [Rust](https://rustup.rs/) to build Pika
Building via [cargo](https://rustup.rs/) not involving meson is supported.
```sh
$ apt install libgtk-3-dev
```
$ apt install libgtk-3-dev borg-backup
$ cargo test
$ cargo run
```
**Debug**
Run with `RUST_LOG` set to debug or trace. For example
Using meson also installs a `.desktop`-file etc.
```sh
$ RUST_LOG=trace cargo run
```
\ No newline at end of file
```
$ meson builddir && cd builddir
$ meson compile
$ meson test
$ meson install
```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment