mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-24 02:11:16 +00:00
The desktop companion crate was Linux-only. All platform-specific code lives in canvas.rs (WebKitGTK, cairo, unix sockets, SO_PEERCRED), so: move webkit2gtk/cairo-rs/libc under linux target dependencies, gate the canvas module, its protocol registration, invoke handler, and exit shutdown to Linux, add a USERPROFILE home fallback and an explicit no-op installer error for Windows, and add the multi-size icon.ico Windows resource. Linux behavior is unchanged; macOS/Windows builds are for testing (macOS cargo build+test green locally; Windows aarch64-msvc built and launched in a Windows 11 ARM VM).
16 lines
523 B
Rust
16 lines
523 B
Rust
fn main() {
|
|
// Command metadata generates capability permissions independently of the
|
|
// target's invoke handler, so keep the Linux-only command permission known.
|
|
const COMMANDS: &[&str] = &[
|
|
"bootstrap",
|
|
"canvas_a2ui_action",
|
|
"gateway_action",
|
|
"install_cli",
|
|
];
|
|
tauri_build::try_build(
|
|
tauri_build::Attributes::new()
|
|
.app_manifest(tauri_build::AppManifest::new().commands(COMMANDS)),
|
|
)
|
|
.expect("Tauri build configuration should be valid");
|
|
}
|