Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,778 changes: 1,712 additions & 66 deletions Cargo.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions crates/switchyard-desktop/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/gen/
16 changes: 13 additions & 3 deletions crates/switchyard-desktop/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[package]
name = "switchyard-desktop"
version.workspace = true
description = "Installer, terminal app, and usage summary for a local Switchyard server"
description = "Installer, desktop app, terminal app, and usage summary for a local Switchyard server"
authors.workspace = true
edition.workspace = true
homepage = "https://github.com/NVIDIA-NeMo/Switchyard"
Expand Down Expand Up @@ -32,10 +32,17 @@ shlex = "2"
strum = { version = "0.28", features = ["derive"] }

[target.'cfg(target_os = "macos")'.dependencies]
objc2-app-kit = { version = "0.3.2", default-features = false, features = ["NSWorkspace"] }
objc2-foundation = { version = "0.3.2", default-features = false, features = ["NSString", "NSURL"] }
objc2 = "0.6"
dispatch2 = "0.3"
objc2-app-kit = { version = "0.3.2", default-features = false, features = ["NSWorkspace", "NSAccessibility", "NSApplication", "NSPanel", "NSColor", "NSWindow", "NSView", "NSScreen", "NSEvent", "NSStatusItem", "NSStatusBarButton", "NSButton", "NSControl", "NSResponder", "objc2-quartz-core"] }
objc2-quartz-core = { version = "0.3.2", default-features = false, features = ["CALayer"] }
objc2-foundation = { version = "0.3.2", default-features = false, features = ["NSString", "NSURL", "NSProcessInfo"] }
security-framework = "3"

[target.'cfg(any(target_os = "macos", windows))'.dependencies]
tauri = { version = "2", features = ["tray-icon", "custom-protocol", "macos-private-api"] }
rfd = { version = "0.17", default-features = false }

[target.'cfg(unix)'.dependencies]
libc = "0.2"

Expand All @@ -49,6 +56,9 @@ self-replace = "1.5"
windows = { version = "0.62.2", features = ["Management_Deployment", "ApplicationModel"] }
windows-sys = { version = "0.61", features = ["Win32_Foundation", "Win32_System_Threading", "Win32_System_Diagnostics_ToolHelp", "Win32_Security_Credentials", "Win32_UI_Shell", "Win32_UI_WindowsAndMessaging", "Win32_System_Console", "Win32_Storage_FileSystem"] }

[target.'cfg(any(target_os = "macos", windows))'.build-dependencies]
tauri-build = "2"

[dev-dependencies]
image = { version = "0.25", default-features = false, features = ["png"] }
plist = "1"
541 changes: 541 additions & 0 deletions crates/switchyard-desktop/README.md

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions crates/switchyard-desktop/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

fn main() {
#[cfg(any(target_os = "macos", windows))]
tauri_build::build();
}
9 changes: 9 additions & 0 deletions crates/switchyard-desktop/capabilities/main-chrome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"identifier": "main-chrome",
"description": "The desktop titlebar supports dragging and double-click maximization.",
"windows": ["main"],
"permissions": [
"core:window:allow-start-dragging",
"core:window:allow-internal-toggle-maximize"
]
}
Loading
Loading