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