Check if file is deb

pull/1991/head
jLynx 9 months ago
parent f9f9297c78
commit 466cdaefa5

@ -877,7 +877,12 @@ impl Update {
}
fn install_deb(&self, bytes: &[u8]) -> Result<()> {
// Try different temp directories, similar to AppImage handling
// First verify the bytes are actually a .deb package
if !infer::archive::is_deb(bytes) {
return Err(Error::InvalidUpdaterFormat);
}
// Try different temp directories
let tmp_dir_locations = ["/tmp", "/var/tmp", "/dev/shm"];
let tmp_dir = tmp_dir_locations

Loading…
Cancel
Save