mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
feat(cli/core): add support for building without targets (#1203)
This commit is contained in:
5
.changes/cli-no-targets.md
Normal file
5
.changes/cli-no-targets.md
Normal 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.
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user