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:
1 parent
a7bf347859
commit
77becc235c
35 files changed
+15691
-29
No files matched your search
@@ -26,7 +26,8 @@ XPID=$!
|
||||
trap 'kill "${APID:-}" "$XPID" 2>/dev/null || true' EXIT
|
||||
for _ in $(seq 50); do [ -e "/tmp/.X11-unix/X$n" ] && break; sleep 0.1; done
|
||||
|
||||
env -u WAYLAND_DISPLAY DISPLAY=":$n" VK_ICD_FILENAMES="$MESA/share/vulkan/icd.d/lvp_icd.x86_64.json" \
|
||||
# Not the desktop's session bus: the app's tray icon would appear on the real desktop.
|
||||
env -u WAYLAND_DISPLAY -u DBUS_SESSION_BUS_ADDRESS DISPLAY=":$n" VK_ICD_FILENAMES="$MESA/share/vulkan/icd.d/lvp_icd.x86_64.json" \
|
||||
"$APP" "$@" >"${OUT%.png}.log" 2>&1 &
|
||||
APID=$!
|
||||
sleep "$WAIT"
|
||||
|
||||
Reference in new issue
Block a user