feat(cli/core): add support for building without targets (#1203)

This commit is contained in:
Noah Klayman 2021-02-10 19:13:06 -08:00 committed by GitHub
parent 189161829a
commit 4d507f9adf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -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.

View File

@ -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);