You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/tauri-bundler/src/error.rs
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -99,11 +99,14 @@ pub enum Error {
99
99
#[error("Wrong package type {0} for platform {1}")]
100
100
InvalidPackageType(String,String),
101
101
/// Bundle type symbol missing in binary
102
-
#[cfg(target_os = "linux")]
103
-
#[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)")]
104
-
MissingBundleTypeVar,
105
-
#[cfg(not(target_os = "linux"))]
106
-
#[error("__TAURI_BUNDLE_TYPE variable not found in binary. Make sure tauri crate and tauri-cli are up to date")]
102
+
#[cfg_attr(
103
+
target_os = "linux",
104
+
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)")
105
+
)]
106
+
#[cfg_attr(
107
+
not(target_os = "linux"),
108
+
error("__TAURI_BUNDLE_TYPE variable not found in binary. Make sure tauri crate and tauri-cli are up to date")
109
+
)]
107
110
MissingBundleTypeVar,
108
111
/// Failed to write binary file changed
109
112
#[error("Failed to write binary file changes: `{0}`")]
/// BZIP2 usually gives better compression ratios than ZLIB, but it is a bit slower and uses more memory. With the default compression level it uses about 4 MB of memory.
815
810
Bzip2,
816
811
/// LZMA (default) is a new compression method that gives very good compression ratios. The decompression speed is high (10-20 MB/s on a 2 GHz CPU), the compression speed is lower. The memory size that will be used for decompression is the dictionary size plus a few KBs, the default is 8 MB.
0 commit comments