mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-26 21:41:48 +02:00
chore: remove dead code from updater test (#731)
This commit is contained in:
@@ -39,21 +39,6 @@ struct Update {
|
|||||||
platforms: HashMap<String, PlatformUpdate>,
|
platforms: HashMap<String, PlatformUpdate>,
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_cli_bin_path(cli_dir: &Path, debug: bool) -> Option<PathBuf> {
|
|
||||||
let mut cli_bin_path = cli_dir.join(format!(
|
|
||||||
"target/{}/cargo-tauri",
|
|
||||||
if debug { "debug" } else { "release" }
|
|
||||||
));
|
|
||||||
if cfg!(windows) {
|
|
||||||
cli_bin_path.set_extension("exe");
|
|
||||||
}
|
|
||||||
if cli_bin_path.exists() {
|
|
||||||
Some(cli_bin_path)
|
|
||||||
} else {
|
|
||||||
None
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fn build_app(cwd: &Path, config: &Config, bundle_updater: bool, target: BundleTarget) {
|
fn build_app(cwd: &Path, config: &Config, bundle_updater: bool, target: BundleTarget) {
|
||||||
let mut command = Command::new("cargo");
|
let mut command = Command::new("cargo");
|
||||||
command
|
command
|
||||||
|
|||||||
Reference in New Issue
Block a user