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:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -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
|
||||||
|
|
||||||
|
|||||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -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
|
||||||
|
|||||||
@@ -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"] }
|
||||||
|
|||||||
Reference in New Issue
Block a user