From 552c7b86c1ff1656a596ce4c8e882ffdfc98ea2d Mon Sep 17 00:00:00 2001 From: jLynx Date: Fri, 1 Nov 2024 12:59:42 +1300 Subject: [PATCH] WIP --- plugins/updater/src/updater.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/plugins/updater/src/updater.rs b/plugins/updater/src/updater.rs index f372cb4e..6266a842 100644 --- a/plugins/updater/src/updater.rs +++ b/plugins/updater/src/updater.rs @@ -758,10 +758,20 @@ impl Update { ))] impl Update { fn install_inner(&self, bytes: &[u8]) -> Result<()> { + log::debug!("Starting Linux update installation"); + log::debug!("Extract path: {:?}", self.extract_path); + + // Check if it's a tar.gz archive + if infer::archive::is_gz(bytes) { + log::debug!("Detected tar.gz archive, attempting to extract"); + return self.handle_targz(bytes); + } + + // If not a tar.gz, try direct installation + log::debug!("Not a tar.gz archive, attempting direct installation"); if self.is_deb_package() { self.install_deb_update(bytes) } else { - // Handle AppImage or other formats self.install_appimage_update(bytes) } }