mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-25 11:43:06 +03:00
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:
parent
3bec7b1595
commit
f228d3d3d4
@ -18,7 +18,7 @@ exclude = [ "CHANGELOG.md", "/target", "rustfmt.toml" ]
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
tauri-utils = { version = "2.0.0-rc.2", path = "../../core/tauri-utils", features = [ "resources" ] }
|
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"
|
flate2 = "1.0"
|
||||||
anyhow = "1.0"
|
anyhow = "1.0"
|
||||||
thiserror = "1.0"
|
thiserror = "1.0"
|
||||||
@ -44,11 +44,11 @@ dunce = "1"
|
|||||||
[target."cfg(target_os = \"windows\")".dependencies]
|
[target."cfg(target_os = \"windows\")".dependencies]
|
||||||
uuid = { version = "1", features = [ "v4", "v5" ] }
|
uuid = { version = "1", features = [ "v4", "v5" ] }
|
||||||
bitness = "0.4"
|
bitness = "0.4"
|
||||||
windows-registry = "0.1.1"
|
windows-registry = "0.2.0"
|
||||||
glob = "0.3"
|
glob = "0.3"
|
||||||
|
|
||||||
[target."cfg(target_os = \"windows\")".dependencies.windows-sys]
|
[target."cfg(target_os = \"windows\")".dependencies.windows-sys]
|
||||||
version = "0.52"
|
version = "0.59"
|
||||||
features = [
|
features = [
|
||||||
"Win32_System_SystemInformation",
|
"Win32_System_SystemInformation",
|
||||||
"Win32_System_Diagnostics_Debug"
|
"Win32_System_Diagnostics_Debug"
|
||||||
@ -67,7 +67,7 @@ regex = "1"
|
|||||||
heck = "0.5"
|
heck = "0.5"
|
||||||
ar = "0.9.0"
|
ar = "0.9.0"
|
||||||
md5 = "0.7.0"
|
md5 = "0.7.0"
|
||||||
rpm = "0.14.0"
|
rpm = "0.15.0"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
name = "tauri_bundler"
|
name = "tauri_bundler"
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
use std::collections::BTreeMap;
|
use std::collections::BTreeMap;
|
||||||
use std::ffi::OsStr;
|
use std::ffi::OsStr;
|
||||||
use std::fs::{read_to_string, File};
|
use std::fs::{read_to_string, File};
|
||||||
|
use std::io::BufReader;
|
||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
|
|
||||||
use anyhow::Context;
|
use anyhow::Context;
|
||||||
@ -60,7 +61,7 @@ pub fn list_icon_files(
|
|||||||
}
|
}
|
||||||
// Put file in scope so that it's closed when copying it
|
// Put file in scope so that it's closed when copying it
|
||||||
let icon = {
|
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 width = decoder.dimensions().0;
|
||||||
let height = decoder.dimensions().1;
|
let height = decoder.dimensions().1;
|
||||||
let is_high_density = common::is_retina(&icon_path);
|
let is_high_density = common::is_retina(&icon_path);
|
||||||
|
@ -22,7 +22,7 @@ use std::{
|
|||||||
collections::BTreeSet,
|
collections::BTreeSet,
|
||||||
ffi::OsStr,
|
ffi::OsStr,
|
||||||
fs::{self, File},
|
fs::{self, File},
|
||||||
io::Write,
|
io::{BufReader, Write},
|
||||||
path::{Path, PathBuf},
|
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")) {
|
if icon_path.extension() != Some(OsStr::new("png")) {
|
||||||
continue;
|
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 width = decoder.dimensions().0;
|
||||||
let height = decoder.dimensions().1;
|
let height = decoder.dimensions().1;
|
||||||
let is_retina = common::is_retina(&icon_path);
|
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);
|
let dest_path = get_dest_path(width, height, is_retina);
|
||||||
icon.write_to(
|
icon.write_to(
|
||||||
&mut common::create_file(&dest_path)?,
|
&mut common::create_file(&dest_path)?,
|
||||||
image::ImageOutputFormat::Png,
|
image::ImageFormat::Png,
|
||||||
)?;
|
)?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
601
tooling/cli/Cargo.lock
generated
601
tooling/cli/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user