Skip to content

Commit 1b127e9

Browse files
committed
template: Update to dioxus 0.4/wry 0.28 with libwebkit2gtk-4.1-dev
We've been getting deprecation warnings in the CI that Ubuntu 22.04 is going to be replaced with Ubuntu 24.04 soon for the `ubuntu-latest` image. That happened just a few days ago, and now the CI complains that `libwebkit2gtk-4.0-dev` can no longer be found in Ubuntu Noble's APT repositories. We have to upgrade to `4.1`, which can be achieved by using at least `wry 0.25`: tauri-apps/wry@c5f3b36 This is used by `dioxus 0.4`, which is the target of this upgrade. As I am not a user of any of the `wry`/`dioxus` functionality inside `xbuild` (and if not for me, it doesn't look like anyone else is maintaining or caring about this either), I kept this upgrade as small as possible and didn't upgrade to `dioxus 0.6.1` (the latest as of writing) which might incur more breaking changes and require testing which I'm not inclined to perform. All I really need is the CI to succeed again :)
1 parent 5662af2 commit 1b127e9

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ jobs:
8888

8989
- name: install linux dependencies
9090
if: ${{ matrix.host == 'ubuntu-latest' }}
91-
run: sudo apt-get update && sudo apt-get install libwebkit2gtk-4.0-dev libgtk-3-dev squashfs-tools
91+
run: sudo apt-get update && sudo apt-get install libwebkit2gtk-4.1-dev libgtk-3-dev squashfs-tools
9292

9393
- name: create project
9494
run: ./x new template
9595

96-
# only linux can target linux as it is not clear what that even is exactly
97-
# glibc/musl gtk/qt x11/wayland
98-
# windows doesn't support posix symlinks so can't cross compile to macos/ios
96+
# Only linux can target linux as it is not clear what that even is exactly
97+
# (glibc/musl GTK/QT X11/Wayland).
98+
# Windows doesn't support posix symlinks so can't cross compile to MacOS/iOS.
9999
- name: build project
100100
if: >
101101
!(matrix.host == 'macos-latest' && matrix.target.platform == 'linux' ||

xbuild/template/Cargo_toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ crate-type = ["cdylib", "rlib"]
88

99
[dependencies]
1010
anyhow = "1.0.68"
11-
dioxus = "0.3.1"
11+
dioxus = "0.4"
1212

1313
[target.'cfg(not(target_family = "wasm"))'.dependencies]
14-
dioxus-desktop = "0.3.0"
14+
dioxus-desktop = "0.4"
1515

1616
[target.'cfg(target_os = "android")'.dependencies]
1717
android_logger = "0.11.1"
@@ -21,5 +21,5 @@ paste = "1.0.11"
2121

2222
[target.'cfg(target_family = "wasm")'.dependencies]
2323
console_error_panic_hook = "0.1.7"
24-
dioxus-web = "0.3.0"
24+
dioxus-web = "0.4"
2525
wasm-logger = "0.2.0"

0 commit comments

Comments
 (0)