From 4d507f9adfb26819f9d6406b191fdaa6188145f4 Mon Sep 17 00:00:00 2001 From: Noah Klayman Date: Wed, 10 Feb 2021 19:13:06 -0800 Subject: [PATCH] feat(cli/core): add support for building without targets (#1203) --- .changes/cli-no-targets.md | 5 +++++ cli/core/src/build.rs | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 .changes/cli-no-targets.md 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);