Skip to content

Commit

Permalink
Tweak CI and README for GTK 4.8 configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
misson20000 committed Aug 4, 2024
1 parent 556fbf3 commit 7788225
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ jobs:
# Default: "false"
cache-on-failure: ""
- name: Build
run: cargo build --verbose
# CI runs Ubuntu Jammy, which has gtk4.6, so we can't enable gtk4.8.
run: cargo build --no-default-features -F gtk --verbose
- name: Run tests
uses: coactions/setup-xvfb@v1
with:
Expand Down
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# charm

A hex editor that "isn't bad".
A structure-first hex editor.

![Screenshot of charm](doc/screenshot.png?raw=true)

Expand All @@ -11,11 +11,23 @@ A hex editor that "isn't bad".
1. Install dependencies:

```
sudo apt-get install libgtk-4-dev libgdk-pixbuf2.0-dev libatk1.0-dev libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++
sudo apt-get install libgtk-4-dev libadwaita-1-dev libgdk-pixbuf2.0-dev libatk1.0-dev libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++
```

2. Build:

```
cargo build -F gtk
cargo build
```

On certain versions of Ubuntu, your version of GTK may be too old for the default configuration, which depends on GTK 4.8. You can disable GTK 4.8 features and build like so, but you may have worse scrolling behavior on Wayland.

```
cargo build --no-default-features -F gtk
```

### NixOS

```
nix-shell -p gtk4 gdk-pixbuf atk cairo libjpeg8 pango giflib pkg-config libadwaita
```

0 comments on commit 7788225

Please sign in to comment.