Skip to content

Conversation

shawn111
Copy link
Contributor

@shawn111 shawn111 commented Aug 26, 2025

chore: Bump xcap to 0.7.0 and update Cross.toml:

  • bump xcap to 0.7.0 from 0.0.14
    - improve some windows/wayland function
    - support android build
    - https://github.com/nashaofu/xcap/releases/tag/v0.7.0
  • update Cross.toml
    • Added pipewire-debian/pipewire-upstream PPA
    • libegl1-mesa-dev, libgbm-dev, libpipewire-0.3-dev, libwayland-dev
  • updated w.title() calls to w.title().unwrap_or_default()

Once, this PR merge, termux user can carge build goose without any patches.

There is the github action build from my repo:
https://github.com/shawn111/goose/releases/tag/canary

https://github.com/shawn111/goose/actions/runs/17299321930

@shawn111 shawn111 marked this pull request as draft August 26, 2025 11:35
@shawn111 shawn111 marked this pull request as ready for review August 28, 2025 15:02
@shawn111 shawn111 changed the title chore: Bump xcap to 0.7.0 chore: Bump xcap to 0.7.0, android can build without extra patch Aug 28, 2025
@shawn111 shawn111 changed the title chore: Bump xcap to 0.7.0, android can build without extra patch chore: Bump xcap to 0.7.0, let android can cargo build without extra patch Aug 28, 2025
@@ -1387,8 +1387,10 @@ impl DeveloperRouter {
)
})?;

Copy link
Contributor Author

@shawn111 shawn111 Aug 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

xcap 0.0.14 -> xcap 0.7.0

-    pub fn title(&self) -> &str {
-        &self.impl_window.title
-    }
-    /// The window process id
-    pub fn pid(&self) -> u32 {
-        self.impl_window.pid
+    pub fn title(&self) -> XCapResult<String> {
+        self.impl_window.title()
+    }

@shawn111
Copy link
Contributor Author

goose core team works on refactor mcp #4297

@@ -1559,7 +1561,7 @@ impl DeveloperRouter {

let window = windows
.into_iter()
.find(|w| w.title() == window_title)
.find(|w| w.title().unwrap_or_default() == window_title)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why would we not have a window title?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

xcap 0.0.14 -> xcap 0.7.0

-    pub fn title(&self) -> &str {
-        &self.impl_window.title
-    }
...
+    pub fn title(&self) -> XCapResult<String> {
+        self.impl_window.title()
+    }

There is for the change of xcap.

Or do you think is it good?

- bump `xcap` to 0.7.0 from 0.0.14
  - improve some windows/wayland function
  - support android build
  - https://github.com/nashaofu/xcap/releases/tag/v0.7.0
- update Cross.toml
  - Added `pipewire-debian/pipewire-upstream` PPA
  - libegl1-mesa-dev, libgbm-dev, libpipewire-0.3-dev, libwayland-dev
- updated w.title() calls to w.title().unwrap_or_default()

Signed-off-by: Shawn Wang <shawn111@gmail.com>
@shawn111
Copy link
Contributor Author

rebase main & fix .github/workflows/ci.yml

--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -62,7 +62,9 @@ jobs:
       - name: Install Dependencies
         run: |
           sudo apt update -y
-          sudo apt install -y libdbus-1-dev gnome-keyring libxcb1-dev
+          sudo apt install -y libdbus-1-dev gnome-keyring libxcb1-dev \
+            libegl1-mesa-dev libgbm-dev libpipewire-0.3-dev libwayland-dev
+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants