Commit Graph
33 Commits
Author SHA1 Message Date
迢辰andXuc Pan bfecaa5c69 fix(wine): select the client root that actually holds bin/ (#24)
* fix(wine): select the client root that actually holds bin/

`uur run` aborted with "WebView2 bootstrapper missing from the client
directory" on a complete install.

`find_client_dir` searched depth-first for `GameViewerServer.exe` and
returned the first hit, special-casing only a parent named `bin`. NetEase
ships the payload twice: as `<root>/bin/` and as a sibling
`<root>/<version>/`. When readdir order reached `<root>/<version>/` first,
that directory was returned as the client root. It has no `bin/`
subdirectory, so every `join("bin")` lookup missed -- the WebView2
bootstrapper and the terminal proxies -- and the session bailed out.
`deploy_terminal_proxy` then created a spurious `bin/` inside the version
directory and wrote proxies into it.

Now every directory holding `GameViewer.exe` is collected and ranked:
`bin/GameViewerServer.exe` scores highest because that is the layout uur
drives, then `bin/MicrosoftEdgeWebview2Setup.exe`, then a top-level
server. Ties break on path depth, then lexically, so the choice no longer
depends on readdir order. A versioned copy is still used when it is the
only candidate.

Adds four tests covering both layouts, readdir stability, and the
fallback.

* fix(wine): require complete payloads and support flat client layouts

---------

Co-authored-by: Xuc Pan <[email protected]>
2026-10-15 14:44:00 +08:00
迢辰andXuc Pan 1dc156739c fix(wine): make setup detect a provisioned prefix (#23)
* fix(wine): make setup detect a provisioned prefix

Two defects made `uur setup` fail on a fully installed prefix.

1. The service check matched `gameviewerserver.exe`, but the Windows
   service NetEase registers uses `GameViewerService.exe` as its
   ImagePath. `GameViewerServer.exe` is the streaming server and never
   appears in the service registration, so `client_service_registered`
   and `query_client_service` always returned false. A completed
   install was reported as "GameViewerService has no valid registered
   executable" and setup re-downloaded and re-installed every run.

   Both checks now share one `SERVICE_IMAGE` constant, and the
   `system.reg` parse is factored into a pure `service_image_path`
   helper so it is testable without a Wine prefix.

2. `wineboot --init` returns before wineserver flushes
   `system.reg`/`user.reg` to disk (measured ~7s on Wine 11), so a
   freshly created prefix was misread as uninitialized and setup
   aborted with "Wine prefix initialization failed (exit status: 0)".
   Added a bounded `flush_prefix` barrier that waits for `wineserver -w`
   to return, then polls for the registry files.

Verified on Wine 11.19: a clean install into an isolated prefix
succeeds end to end, re-running setup takes the already-provisioned
fast path, and `setup --repair` verifies without reinstalling.

* fix(wine): bound prefix readiness waits without blocking on services

---------

Co-authored-by: Xuc Pan <[email protected]>
2026-10-15 14:41:50 +08:00
Xuc Pan ef72baa56d chore(release): prepare v0.1.5 v0.1.5 2026-10-13 15:31:16 +08:00
Xuc Pan 8c0589021f fix: repair Wine setup and niri capture, input and tray (#22)
* fix(setup): verify provisioning and runtime readiness

* feat: add explicit per-user uninstall and purge

* fix: restore niri input and provide native capture and tray

* fix(build): declare Wayland scanner and release dependencies
2026-10-13 15:26:06 +08:00
Xuc Pan d349e6ff6a chore(release): prepare v0.1.4 v0.1.4 2026-10-05 23:40:39 +08:00
Xuc Pan 01e7ed7218 Merge pull request #20 from panxuc/fix-issue-18-prefix-deploy
fix: make managed prefix deployment repeatable
2026-10-05 23:33:03 +08:00
Xuc Pan 3c78382f20 test(session): cover first deployment from readonly source 2026-10-05 23:24:53 +08:00
Xuc Pan 2833b08a37 fix(session): make prefix deployment repeatable 2026-10-05 23:19:31 +08:00
Xuc Pan 8fd476d81c Merge pull request #16 from panxuc/fix-issue-14-input-bridge
fix: keep input bridge alive for unsupported key events
2026-10-05 23:11:28 +08:00
Xuc Pan 31aaab0fee fix(bridge): ignore zero virtual-key input 2026-09-30 06:59:52 +08:00
Xuc Pan 5245c9ee61 fix(desktop): improve HiDPI and exit integration 2026-09-25 03:04:51 +08:00
Xuc Pan 9f12a88a08 fix(desktop): improve HiDPI and exit integration 2026-09-25 03:04:51 +08:00
Muush 2b41541128 fix(wallpaper): resolve wpaperd relative targets from its working directory
wpaperd writes configured image paths verbatim into the state symlink, so
targets relative to its working directory dangle under symlink semantics
and link.canonicalize() fails for every output. Read /proc/<pid>/cwd where
the process is matched and resolve relative targets against it; absolute
targets keep filesystem semantics.
2026-09-24 23:14:23 +08:00
Xuc Pan d47178916f fix(wallpaper): resolve wpaperd links from link location 2026-09-24 13:13:12 +08:00
Muush 3dc3b62477 feat(wallpaper): detect wpaperd wallpapers from state links
wpaperd mirrors the current wallpaper of every output as a symlink
under $XDG_STATE_HOME/wpaperd/wallpapers, rewritten on each change.
Identify the wpaperd process in the runtime provider scan and resolve
the newest link, joining relative targets with $HOME.
2026-09-24 13:13:12 +08:00
Xuc Pan bb6476a864 chore(release): prepare v0.1.3 v0.1.3 2026-09-23 09:31:40 +08:00
Xuc Pan 17a09e08a5 fix(wine): use builtin DLLs for WebView2 setup 2026-09-23 09:00:41 +08:00
Xuc Pan eb9f35968e chore(release): prepare v0.1.2 v0.1.2 2026-09-21 21:31:57 +08:00
Xuc Pan 55eaf98e75 fix(hook): align cursor overlay with GDI screen coordinates 2026-09-21 21:22:19 +08:00
dashanlkk a698c54c66 fix(hook): overlay cursor in X11 GDI captures 2026-09-21 21:22:19 +08:00
Xuc Pan c9cfc479dc fix(wine): prefer bundled msvcp140 for UU 4.41 2026-09-20 22:54:50 +08:00
HTwoOhwater fd2368058f fix(bridge): dispatch concurrent hook input without socket lifetime locking 2026-09-20 22:53:27 +08:00
Xuc Pan fba3fb9604 style(icon): update icon 2026-09-05 21:30:26 +08:00
Xuc Pan c5446a2d32 chore(release): prepare v0.1.1
Bump Cargo, Nix, Alpine, AUR, and documented package versions so the release tag includes the finalized cross-platform release workflow.
v0.1.1
2026-09-05 14:24:55 +08:00
Xuc Pan ab8fbf23ca fix(release): run AUR publication as one owner
Provision SSH credentials for the unprivileged builder and run clone, metadata generation, commit, and push under that same account.
2026-09-05 14:18:24 +08:00
Xuc Pan 353511b020 fix(release): support isolated authenticated AUR retries
Use the configured AUR key for clone and push with an explicit known-hosts file, and add an AUR-only dispatch mode that avoids rebuilding release packages.
2026-09-05 14:15:53 +08:00
Xuc Pan c123f3832d fix(release): target repository explicitly when uploading 2026-09-05 14:10:16 +08:00
Xuc Pan 0b095e3826 fix(release): retain makepkg artifacts outside temp build
Canonicalize the Arch package destination before entering makepkg's temporary directory and pass the workspace output path explicitly from CI.
2026-09-05 14:05:05 +08:00
Xuc Pan b594047423 ci(release): build pacman packages with makepkg
Build conventional artifacts on Ubuntu and the Arch package in an Arch container, merge both artifact sets, generate one checksum manifest, and publish them together. Allow an explicit manual rebuild to refresh AUR metadata.
2026-09-05 14:00:15 +08:00
Xuc Pan f94239c6a4 fix(release): install nFPM from verified upstream archive
Replace the nonexistent nfpm-action with the official pinned Linux archive and verify it against the upstream checksum before packaging.
2026-09-05 13:53:10 +08:00
Xuc Pan 19bba59906 ci(release): build assets from published releases
Trigger packaging only after a maintainer publishes a GitHub Release, keep manual rebuilds tied to an explicit existing tag, and use the selected release tag consistently for assets and AUR metadata.
v0.1.0
2026-09-05 13:51:26 +08:00
Xuc Pan 0d0820da7e fix(ci): support older MinGW and Nix builds
Declare the Windows API level required by the terminal proxy so Ubuntu 22.04 MinGW exposes CancelSynchronousIo. Patch script shebangs inside the Nix sandbox, install the target-triple Rust binary through the shared staging script, and keep Nix CI resource usage bounded.
2026-09-05 13:33:25 +08:00
Xuc Pan 611383544b Initial commit 2026-09-05 13:04:29 +08:00