mirror of
https://github.com/tauri-apps/tauri.git
synced 2025-01-03 00:21:34 +03:00
feat(cli/core): add support for building without targets (#1203)
This commit is contained in:
parent
189161829a
commit
4d507f9adf
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);
|
||||
|
Loading…
Reference in New Issue
Block a user