chore(deps) Update Tauri Bundler (dev) (#10512)

* chore(deps) Update Tauri Bundler

* fix build

* fix linux

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
This commit is contained in:
renovate[bot] 2024-08-12 12:39:33 -03:00 committed by GitHub
parent 3bec7b1595
commit f228d3d3d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 509 additions and 109 deletions

View File

@ -18,7 +18,7 @@ exclude = [ "CHANGELOG.md", "/target", "rustfmt.toml" ]
[dependencies]
tauri-utils = { version = "2.0.0-rc.2", path = "../../core/tauri-utils", features = [ "resources" ] }
image = "0.24.9"
image = "0.25.0"
flate2 = "1.0"
anyhow = "1.0"
thiserror = "1.0"
@ -44,11 +44,11 @@ dunce = "1"
[target."cfg(target_os = \"windows\")".dependencies]
uuid = { version = "1", features = [ "v4", "v5" ] }
bitness = "0.4"
windows-registry = "0.1.1"
windows-registry = "0.2.0"
glob = "0.3"
[target."cfg(target_os = \"windows\")".dependencies.windows-sys]
version = "0.52"
version = "0.59"
features = [
"Win32_System_SystemInformation",
"Win32_System_Diagnostics_Debug"
@ -67,7 +67,7 @@ regex = "1"
heck = "0.5"
ar = "0.9.0"
md5 = "0.7.0"
rpm = "0.14.0"
rpm = "0.15.0"
[lib]
name = "tauri_bundler"

View File

@ -18,6 +18,7 @@
use std::collections::BTreeMap;
use std::ffi::OsStr;
use std::fs::{read_to_string, File};
use std::io::BufReader;
use std::path::{Path, PathBuf};
use anyhow::Context;
@ -60,7 +61,7 @@ pub fn list_icon_files(
}
// Put file in scope so that it's closed when copying it
let icon = {
let decoder = PngDecoder::new(File::open(&icon_path)?)?;
let decoder = PngDecoder::new(BufReader::new(File::open(&icon_path)?))?;
let width = decoder.dimensions().0;
let height = decoder.dimensions().1;
let is_high_density = common::is_retina(&icon_path);

View File

@ -22,7 +22,7 @@ use std::{
collections::BTreeSet,
ffi::OsStr,
fs::{self, File},
io::Write,
io::{BufReader, Write},
path::{Path, PathBuf},
};
@ -90,7 +90,7 @@ fn generate_icon_files(bundle_dir: &Path, settings: &Settings) -> crate::Result<
if icon_path.extension() != Some(OsStr::new("png")) {
continue;
}
let decoder = PngDecoder::new(File::open(&icon_path)?)?;
let decoder = PngDecoder::new(BufReader::new(File::open(&icon_path)?))?;
let width = decoder.dimensions().0;
let height = decoder.dimensions().1;
let is_retina = common::is_retina(&icon_path);
@ -127,7 +127,7 @@ fn generate_icon_files(bundle_dir: &Path, settings: &Settings) -> crate::Result<
let dest_path = get_dest_path(width, height, is_retina);
icon.write_to(
&mut common::create_file(&dest_path)?,
image::ImageOutputFormat::Png,
image::ImageFormat::Png,
)?;
}
}

601
tooling/cli/Cargo.lock generated

File diff suppressed because it is too large Load Diff