Skip to content

Commit

Permalink
feat(cli/core): add support for building without targets (#1203)
Browse files Browse the repository at this point in the history
  • Loading branch information
nklayman authored Feb 11, 2021
1 parent 1891618 commit 4d507f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changes/cli-no-targets.md
Original file line number Diff line number Diff line change
@@ -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.
3 changes: 3 additions & 0 deletions cli/core/src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4d507f9

Please sign in to comment.