diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-01 22:02:52 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-01 22:02:52 +0100 |
| commit | eca39344cd9d2a37fb52ef1c5f4fe3c11f6525cb (patch) | |
| tree | 3dcee368dce18a468ac0d629015612cc720eaac3 /gui/Cargo.toml | |
| parent | docs: record the v4.3.0 packaging verification (diff) | |
| download | zagan-bet-eca39344cd9d2a37fb52ef1c5f4fe3c11f6525cb.tar.gz zagan-bet-eca39344cd9d2a37fb52ef1c5f4fe3c11f6525cb.zip | |
v4.3.1: render Windows through wgpu and keep the installer window open
Windows 10 1809 sessions with only the Microsoft display driver expose OpenGL 1.1, which egui_glow refuses. The Windows build now uses wgpu on Direct3D 12 and its adapter selector accepts WARP, the software rasterizer, after every hardware class, so a VM or Remote Desktop session still starts. Linux keeps the smaller glow renderer.
The GUI is a windows-subsystem binary now, so launching it from the Start menu does not flash a console; startup failures and --help go to a native message box. The PowerShell installer pauses before closing unless -NoPause is passed.
Diffstat (limited to 'gui/Cargo.toml')
| -rw-r--r-- | gui/Cargo.toml | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/gui/Cargo.toml b/gui/Cargo.toml index 8bcbda0..24bf560 100644 --- a/gui/Cargo.toml +++ b/gui/Cargo.toml | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | [package] | 1 | [package] |
| 2 | name = "zagan-bet-gui" | 2 | name = "zagan-bet-gui" |
| 3 | version = "4.3.0" | 3 | version = "4.3.1" |
| 4 | edition = "2024" | 4 | edition = "2024" |
| 5 | license = "GPL-3.0-or-later" | 5 | license = "GPL-3.0-or-later" |
| 6 | description = "Desktop frontend for zagan-bet" | 6 | description = "Desktop frontend for zagan-bet" |
| @@ -12,12 +12,19 @@ path = "src/main.rs" | |||
| 12 | [dependencies] | 12 | [dependencies] |
| 13 | # No default features: the GUI never links the server's native-tls. | 13 | # No default features: the GUI never links the server's native-tls. |
| 14 | zagan-bet = { path = "..", default-features = false } | 14 | zagan-bet = { path = "..", default-features = false } |
| 15 | # glow (OpenGL) rather than wgpu: no Vulkan runtime, and it cross-compiles to | 15 | rusqlite = { version = "0.29", features = ["bundled"] } |
| 16 | # Windows with the mingw toolchain. Fonts are embedded, so no default_fonts. | 16 | sha2 = "0.10" |
| 17 | |||
| 18 | # Linux uses glow (OpenGL): small, and every desktop has a usable driver. | ||
| 19 | # Windows uses wgpu on Direct3D 12, which also has the WARP software adapter on | ||
| 20 | # machines with no OpenGL driver (Windows 10 1809 over Remote Desktop, VMs). | ||
| 21 | [target.'cfg(windows)'.dependencies] | ||
| 22 | eframe = { version = "0.37", default-features = false, features = ["wgpu"] } | ||
| 23 | windows-sys = { version = "0.59", features = ["Win32_UI_WindowsAndMessaging"] } | ||
| 24 | |||
| 25 | [target.'cfg(not(windows))'.dependencies] | ||
| 17 | eframe = { version = "0.37", default-features = false, features = [ | 26 | eframe = { version = "0.37", default-features = false, features = [ |
| 18 | "glow", | 27 | "glow", |
| 19 | "wayland", | 28 | "wayland", |
| 20 | "x11", | 29 | "x11", |
| 21 | ] } | 30 | ] } |
| 22 | rusqlite = { version = "0.29", features = ["bundled"] } | ||
| 23 | sha2 = "0.10" | ||
