File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed
Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,16 @@ pre-build = [
55 # Add the ARM64 architecture and install necessary dependencies
66 " dpkg --add-architecture arm64" ,
77 """ \
8+ apt-get update && apt install -y software-properties-common \
9+ add-apt-repository -y ppa:pipewire-debian/pipewire-upstream \
810 apt-get update --fix-missing && apt-get install -y \
911 curl \
1012 unzip \
1113 pkg-config \
1214 libssl-dev:arm64 \
1315 libdbus-1-dev:arm64 \
16+ libpipewire-0.3-dev:arm64 \
17+ libwayland-dev:arm64 \
1418 libxcb1-dev:arm64
1519 """ ,
1620 """ \
@@ -27,12 +31,16 @@ pre-build = [
2731xargo = false
2832pre-build = [
2933 """ \
34+ apt-get update && apt install -y software-properties-common \
35+ add-apt-repository -y ppa:pipewire-debian/pipewire-upstream \
3036 apt-get update && apt-get install -y \
3137 curl \
3238 unzip \
3339 pkg-config \
3440 libssl-dev \
3541 libdbus-1-dev \
42+ libpipewire-0.3-dev \
43+ libwayland-dev \
3644 libxcb1-dev
3745 """ ,
3846 """ \
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ serde_json = "1.0"
2828lazy_static = " 1.5"
2929shellexpand = " 3.1.0"
3030indoc = " 2.0.5"
31- xcap = " 0.0.14 "
31+ xcap = " 0.7.0 "
3232reqwest = { version = " 0.11" , features = [
3333 " json" ,
3434 " rustls-tls-native-roots" ,
Original file line number Diff line number Diff line change @@ -1626,7 +1626,7 @@ impl DeveloperRouter {
16261626 } ) ?;
16271627
16281628 let window_titles: Vec < String > =
1629- windows. into_iter ( ) . map ( |w| w. title ( ) . to_string ( ) ) . collect ( ) ;
1629+ windows. into_iter ( ) . map ( |w| w. title ( ) . unwrap_or_default ( ) . to_string ( ) ) . collect ( ) ;
16301630
16311631 Ok ( vec ! [
16321632 Content :: text( format!( "Available windows:\n {}" , window_titles. join( "\n " ) ) )
@@ -1797,7 +1797,7 @@ impl DeveloperRouter {
17971797
17981798 let window = windows
17991799 . into_iter ( )
1800- . find ( |w| w. title ( ) == window_title)
1800+ . find ( |w| w. title ( ) . unwrap_or_default ( ) == window_title)
18011801 . ok_or_else ( || {
18021802 ErrorData :: new (
18031803 ErrorCode :: INTERNAL_ERROR ,
You can’t perform that action at this time.
0 commit comments