fix windows build

pull/366/head
Lucas Nogueira 2 years ago
parent bc3e60ae4c
commit 6bf4d56026
No known key found for this signature in database
GPG Key ID: FFEA6C72E73482F1

@ -610,7 +610,7 @@ impl<R: Runtime> Update<R> {
&self.extract_path, &self.extract_path,
self.with_elevated_task, self.with_elevated_task,
&self.app.config(), &self.app.config(),
&self.app.state::<UpdaterState>().config, &self.app.state::<crate::UpdaterState>().config,
)?; )?;
#[cfg(not(target_os = "windows"))] #[cfg(not(target_os = "windows"))]
copy_files_and_run(archive_buffer, &self.extract_path)?; copy_files_and_run(archive_buffer, &self.extract_path)?;
@ -738,7 +738,7 @@ fn copy_files_and_run<R: Read + Seek>(
// Run the EXE // Run the EXE
let mut installer = Command::new(found_path); let mut installer = Command::new(found_path);
if tauri::utils::config::WindowsUpdateInstallMode::Quiet if tauri::utils::config::WindowsUpdateInstallMode::Quiet
== config.tauri.bundle.updater.install_mode == config.tauri.bundle.updater.windows.install_mode
{ {
installer.arg("/S"); installer.arg("/S");
} }

Loading…
Cancel
Save