Fix Linux build: enable ksni feature for tray-item and add libdbus-1-dev to CI

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
skepsismusic
2026-02-16 14:05:51 +01:00
parent 7c91e1775a
commit bbffc0e6bb
3 changed files with 9 additions and 1 deletions

View File

@@ -13,6 +13,10 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Install system dependencies (Linux)
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y libdbus-1-dev pkg-config
- name: Install Rust toolchain - name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable uses: dtolnay/rust-toolchain@stable

View File

@@ -43,7 +43,7 @@ jobs:
- name: Install system dependencies (Linux) - name: Install system dependencies (Linux)
if: runner.os == 'Linux' if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y cmake run: sudo apt-get update && sudo apt-get install -y cmake libdbus-1-dev pkg-config
- name: Install Node.js - name: Install Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4

View File

@@ -51,6 +51,10 @@ tokio-util = { version = "0.7", features = ["io"] }
# System tray (production mode) # System tray (production mode)
tray-item = "0.10" tray-item = "0.10"
# Linux: tray-item needs ksni feature (pure-Rust D-Bus StatusNotifierItem)
[target.'cfg(target_os = "linux")'.dependencies]
tray-item = { version = "0.10", features = ["ksni"] }
# Windows icon loading (for tray icon) # Windows icon loading (for tray icon)
[target.'cfg(target_os = "windows")'.dependencies] [target.'cfg(target_os = "windows")'.dependencies]
windows-sys = { version = "0.52", features = ["Win32_UI_WindowsAndMessaging", "Win32_System_LibraryLoader"] } windows-sys = { version = "0.52", features = ["Win32_UI_WindowsAndMessaging", "Win32_System_LibraryLoader"] }