diff --git a/.changes/cli-no-targets.md b/.changes/cli-no-targets.md new file mode 100644 index 000000000..068413721 --- /dev/null +++ b/.changes/cli-no-targets.md @@ -0,0 +1,5 @@ +--- +"tauri-cli": minor +--- + +You can now run `cargo tauri build -t none` to speed up the build if you don't need executables. diff --git a/cli/core/src/build.rs b/cli/core/src/build.rs index 3abf6545f..013554e61 100644 --- a/cli/core/src/build.rs +++ b/cli/core/src/build.rs @@ -71,6 +71,9 @@ impl Build { if let Some(names) = self.targets { let mut types = vec![]; for name in names { + if name == "none" { + break; + } match PackageType::from_short_name(&name) { Some(package_type) => { types.push(package_type);