From 5823d23bb43cd319c6f7c9b034202fd9dc2ad947 Mon Sep 17 00:00:00 2001 From: hazre Date: Fri, 6 Mar 2026 04:10:55 +0100 Subject: [PATCH] fix(tauri): deep linking breaking due to specta export Aaaaaaa spent an hour on this, problem was that it was panicking trying to export to a path relative to the executable which is protected by the os. --- src-tauri/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 27a0666b0..5ad25d429 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -25,7 +25,7 @@ pub fn run() { Typescript::default().header("/* eslint-disable */"), "../src/app/generated/tauri.ts", ) - .expect("Failed to export tauri-specta bindings"); + .unwrap_or_else(|e| eprintln!("Warning: Failed to export tauri-specta bindings: {e}")); let invoke_handler = specta_builder.invoke_handler();