windows: the app's tray, and its Windows build from Linux

- Tray (gpui-tray): a shield coloured by how things are (working, one
  failed, all off, no service), its tooltip saying which; the menu opens
  the window and switches the local proxy, the DPI bypass and the Telegram
  proxy, with their states checked; Quit. Closing the window leaves the
  app in the tray (no tray: it quits); --hidden starts it there.
- The app builds for Windows from Linux: GPUI compiles its HLSL shaders
  with fxc.exe only when the building machine is Windows, so its Windows
  backend is vendored with that one check made on the target instead
  (vendor/gpui-pre-windows/PATCHED.md, tools/vendor-gpui-windows.py), and
  tools/fxc-wine.sh runs Microsoft's fxc.exe under Wine: the compiler from
  the Windows SDK 10.0.26100 installer, pinned by hash, kept on the build
  machine; only the compiled shaders go into the app.
- gui-shot.sh keeps the app off the desktop's session bus.

Under Wine the app starts but cannot draw text (Wine's DirectWrite does
not implement font-set matching), so its Windows rendering is untested.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Opus 5.5 committed 2026-10-27 02:03:18 +03:00
1 parent a7bf347859
commit 77becc235c
35 files changed
+15691 -29

No files matched your search

+93 -11
View File
@@ -65,7 +65,7 @@ dependencies = [
"futures-lite",
"futures-util",
"serde",
"zbus",
"zbus 5.19.0",
]
[[package]]
@@ -317,7 +317,7 @@ dependencies = [
"wayland-backend",
"wayland-client",
"wayland-protocols",
"zbus",
"zbus 5.19.0",
]
[[package]]
@@ -498,7 +498,7 @@ dependencies = [
"enumflags2",
"serde",
"static_assertions",
"zbus",
"zbus 5.19.0",
"zbus-lockstep",
"zbus-lockstep-macros",
"zbus_names",
@@ -513,7 +513,7 @@ checksum = "2230e48787ed3eb4088996eab66a32ca20c0b67bbd4fd6cdfe79f04f1f04c9fc"
dependencies = [
"atspi-common",
"serde",
"zbus",
"zbus 5.19.0",
]
[[package]]
@@ -2682,8 +2682,6 @@ dependencies = [
[[package]]
name = "gpui-pre-windows"
version = "0.3.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "80670f987b920fba019917b2e222ecf2b377f2a6d77872010c7d284c235837b3"
dependencies = [
"accesskit",
"accesskit_windows",
@@ -2725,6 +2723,24 @@ version = "0.3.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e0f9dae92b9bc15baa6e530c90bdd4c689d3710bd4d18c3566deb1d6ae182daf"
[[package]]
name = "gpui-tray"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "312c3f394b27270f149d2b5f51ee6512bd37266dbfe8d2677c1992c76b7adfc5"
dependencies = [
"async-channel",
"gpui-pre",
"image",
"log",
"objc2 0.6.5",
"objc2-app-kit 0.3.2",
"objc2-foundation 0.3.2",
"thiserror 2.0.21",
"windows 0.62.2",
"zbus 6.1.0",
]
[[package]]
name = "granit-parser"
version = "1.3.0"
@@ -3973,7 +3989,7 @@ dependencies = [
"mac-notification-sys",
"serde",
"tauri-winrt-notification",
"zbus",
"zbus 5.19.0",
]
[[package]]
@@ -4518,8 +4534,8 @@ dependencies = [
"serde_bytes",
"sha2 0.10.9",
"subtle",
"zbus",
"zbus_macros",
"zbus 5.19.0",
"zbus_macros 5.19.0",
"zeroize",
"zvariant",
]
@@ -4959,6 +4975,7 @@ dependencies = [
"anyhow",
"async-channel",
"gpui-kit",
"gpui-tray",
"ps-client",
"ps-ipc",
"serde_json",
@@ -6521,7 +6538,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
dependencies = [
"fastrand",
"getrandom 0.3.4",
"getrandom 0.4.3",
"once_cell",
"rustix",
"windows-sys 0.61.2",
@@ -8555,11 +8572,38 @@ dependencies = [
"uuid",
"windows-sys 0.61.2",
"winnow 1.0.4",
"zbus_macros",
"zbus_macros 5.19.0",
"zbus_names",
"zvariant",
]
[[package]]
name = "zbus"
version = "6.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fcff5faa63a63d5b81051740f7382017f10b3440b3f401d97f0cf0b3b39c62d9"
dependencies = [
"async-trait",
"bitflags 2.13.2",
"endi",
"futures-core",
"hex",
"libc",
"ordered-stream",
"rustix",
"serde",
"serde_repr",
"socket2",
"uds_windows",
"uuid",
"windows-sys 0.61.2",
"winnow 1.0.4",
"zbus_macros 6.1.0",
"zbus_utils",
"zcheapstr",
"zruntime",
]
[[package]]
name = "zbus-lockstep"
version = "0.5.2"
@@ -8599,6 +8643,18 @@ dependencies = [
"zvariant_utils",
]
[[package]]
name = "zbus_macros"
version = "6.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5bba6e2bfe19571dc81b3e0be9f8daec6e5422db3e2eea2e766a859553e7bd37"
dependencies = [
"proc-macro2",
"quote",
"syn 3.0.9",
"zbus_utils",
]
[[package]]
name = "zbus_names"
version = "4.3.5"
@@ -8610,6 +8666,19 @@ dependencies = [
"zvariant",
]
[[package]]
name = "zbus_utils"
version = "6.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c27a055b114bd9fc3686e90f62bd1fe612d523fc5f620bac3b1d2f42d3f6cab8"
dependencies = [
"proc-macro2",
"quote",
"serde",
"syn 3.0.9",
"winnow 1.0.4",
]
[[package]]
name = "zbus_xml"
version = "5.2.1"
@@ -8831,6 +8900,19 @@ dependencies = [
"simd-adler32",
]
[[package]]
name = "zruntime"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dfc035df602243402949ddf3dcc5bcfad7edeb732dd49ec6e605431c4eca54ce"
dependencies = [
"futures-core",
"futures-io",
"rustix",
"socket2",
"windows-sys 0.61.2",
]
[[package]]
name = "zune-core"
version = "0.4.12"