fix(shell): fix schema requiring sidecar property even though it is optional (#1839)

* fix(shell): fix schema requiring `sidecar` property even though it is optional

* fix clippy

* make `cmd` and `sidecar` exclusive

* make args optional

* cleanup

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
This commit is contained in:
Amr Bashir
2024-10-01 10:16:14 -03:00
committed by GitHub
co-authored by Lucas Nogueira
parent 2f7e32b5e0
commit 44273b9889
10 changed files with 213 additions and 101 deletions
@@ -221,7 +221,7 @@ fn update_app() {
let updater_extension = if let Some(updater_zip_ext) = updater_zip_ext {
format!("{bundle_updater_ext}.{updater_zip_ext}")
} else {
format!("{bundle_updater_ext}")
bundle_updater_ext
};
let signature_extension = format!("{updater_extension}.sig");
let signature_path = out_bundle_path.with_extension(signature_extension);
@@ -413,7 +413,7 @@ fn update_app() {
),
2 => (
v2_config.version,
Box::new(|| v2::bundle_paths(&root_dir, &v2_config.version))
Box::new(|| v2::bundle_paths(&root_dir, v2_config.version))
as Box<dyn Fn() -> Vec<(BundleTarget, PathBuf)>>,
"-v2",
),