GTK App Getting Started Instructions
This commit is contained in:
parent
7cc1f3119e
commit
44ecf042a3
1 changed files with 85 additions and 0 deletions
85
docs/GTK_APP.md
Normal file
85
docs/GTK_APP.md
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
# Linux GTK App Getting Started
|
||||
|
||||
## Dependencies
|
||||
|
||||
### Install Build Dependencies
|
||||
|
||||
<details>
|
||||
<summary>Fedora</summary>
|
||||
|
||||
1. Install build dependencies
|
||||
|
||||
```
|
||||
sudo dnf install clang ninja cmake meson gtk4-devel glib2-devel libadwaita-devel desktop-file-utils libappstream-glib
|
||||
```
|
||||
|
||||
2. Install flatpak builder (Optional)
|
||||
|
||||
```
|
||||
sudo dnf install flatpak-builder
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
### Flatpak Build Dependencies (Optional)
|
||||
|
||||
```
|
||||
flatpak install --user \
|
||||
org.gnome.Platform/x86_64/45 \
|
||||
org.freedesktop.Sdk.Extension.rust-stable/x86_64/23.08
|
||||
```
|
||||
|
||||
## Building
|
||||
|
||||
<details>
|
||||
<summary>General</summary>
|
||||
|
||||
1. Enter the `burrow-gtk`
|
||||
|
||||
```bash
|
||||
cd burrow-gtk
|
||||
```
|
||||
|
||||
2. Perform the meson build
|
||||
```
|
||||
meson setup build
|
||||
meson compile -C build
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Flatpak</summary>
|
||||
|
||||
1. Compile and install the flatpak
|
||||
|
||||
```
|
||||
flatpak-builder
|
||||
--user --install --force-clean --disable-rofiles-fuse \
|
||||
flatpak_debug/ \
|
||||
burrow-gtk/build-aux/com.hackclub.burrow.devel.json
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
|
||||
## Running
|
||||
|
||||
<details>
|
||||
<summary>General</summary>
|
||||
|
||||
The compiled binary can be found in `build/src/burrow-gtk`.
|
||||
|
||||
```
|
||||
./build/src/burrow-gtk
|
||||
```
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Flatpak</summary>
|
||||
|
||||
```
|
||||
flatpak run com.hackclub.burrow-devel
|
||||
```
|
||||
|
||||
</details>
|
||||
Loading…
Add table
Add a link
Reference in a new issue