From fc017ee2577f48615367ea519386d3f37837e2c1 Mon Sep 17 00:00:00 2001 From: kandrelczyk Date: Tue, 28 Oct 2025 08:03:48 +0100 Subject: [PATCH] add info to error message (fix 14186) (#14368) * add info to error message * changes file and linux only warning Signed-off-by: Krzysztof Andrelczyk * Update change file --------- Signed-off-by: Krzysztof Andrelczyk Co-authored-by: Tony --- .changes/bundler-warning.md | 5 +++++ crates/tauri-bundler/src/error.rs | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 .changes/bundler-warning.md diff --git a/.changes/bundler-warning.md b/.changes/bundler-warning.md new file mode 100644 index 000000000..37d6931b4 --- /dev/null +++ b/.changes/bundler-warning.md @@ -0,0 +1,5 @@ +--- +'tauri-bundler': 'patch:enhance' +--- + +Mention symbol stripping on Linux in binary patch failed warning message diff --git a/crates/tauri-bundler/src/error.rs b/crates/tauri-bundler/src/error.rs index 3a8fe82dd..92adf63a7 100644 --- a/crates/tauri-bundler/src/error.rs +++ b/crates/tauri-bundler/src/error.rs @@ -99,6 +99,10 @@ pub enum Error { #[error("Wrong package type {0} for platform {1}")] InvalidPackageType(String, String), /// Bundle type symbol missing in binary + #[cfg(target_os = "linux")] + #[error("__TAURI_BUNDLE_TYPE variable not found in binary. Make sure tauri crate and tauri-cli are up to date and that symbol stripping is disabled (https://doc.rust-lang.org/cargo/reference/profiles.html#strip)")] + MissingBundleTypeVar, + #[cfg(not(target_os = "linux"))] #[error("__TAURI_BUNDLE_TYPE variable not found in binary. Make sure tauri crate and tauri-cli are up to date")] MissingBundleTypeVar, /// Failed to write binary file changed