feat: install si command from settings
Rust / build (macos-latest, stable) (push) Canceled after 0s
Rust / build (ubuntu-latest, stable) (push) Canceled after 0s
Rust / build (windows-latest, stable) (push) Canceled after 0s

This commit is contained in:
2026-11-29 21:37:42 +07:00
parent 9de81e31f4
commit df1f232aae
7 changed files with 242 additions and 20 deletions
+4 -11
View File
@@ -132,17 +132,8 @@ async fn run(command: Command, cx: &mut AsyncApp) -> anyhow::Result<()> {
/// Launches the desktop app: the `signed` binary built next to this one, else the installed app.
fn open_desktop() -> anyhow::Result<()> {
let exe = std::env::current_exe().context("failed to locate this executable")?;
let extension = std::env::consts::EXE_EXTENSION;
let sibling = if extension.is_empty() {
exe.with_file_name("signed")
} else {
exe.with_file_name(format!("signed.{extension}"))
};
if sibling.is_file() {
std::process::Command::new(&sibling)
if let Some(desktop) = paths::sibling_binary("signed") {
std::process::Command::new(desktop)
.stdin(Stdio::null())
.stdout(Stdio::null())
.stderr(Stdio::null())
@@ -165,6 +156,8 @@ fn open_desktop() -> anyhow::Result<()> {
return Ok(());
}
let exe = std::env::current_exe().context("failed to locate this executable")?;
bail!(
"the desktop app was not found next to {}; run `cargo run -p signed` instead",
exe.display()