Skip to content

Commit 4d507f9

Browse files
authored
feat(cli/core): add support for building without targets (#1203)
1 parent 1891618 commit 4d507f9

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.changes/cli-no-targets.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-cli": minor
3+
---
4+
5+
You can now run `cargo tauri build -t none` to speed up the build if you don't need executables.

cli/core/src/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ impl Build {
7171
if let Some(names) = self.targets {
7272
let mut types = vec![];
7373
for name in names {
74+
if name == "none" {
75+
break;
76+
}
7477
match PackageType::from_short_name(&name) {
7578
Some(package_type) => {
7679
types.push(package_type);

0 commit comments

Comments
 (0)