chore(deps) Update Tauri Bundler (#652)

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
This commit is contained in:
renovate[bot]
2020-06-11 12:11:52 -03:00
committed by GitHub
parent 0f55a8f4f7
commit 12a4fea039
2 changed files with 5 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ clap = "^2"
dirs = "2.0.2"
glob = "0.3.0"
icns = "0.3"
image = "0.23.4"
image = "0.23.5"
libflate = "1.0"
md5 = "0.7.0"
msi = "0.2"
@@ -39,13 +39,13 @@ lazy_static = { version = "1.4" }
handlebars = { version = "3.1" }
[target.'cfg(target_os = "windows")'.dependencies]
attohttpc = { version = "0.13.0" }
attohttpc = { version = "0.14.0" }
regex = { version = "1" }
runas = "0.2"
[target.'cfg(not(target_os = "linux"))'.dependencies]
zip = { version = "0.5" }
sha2 = { version = "0.8" }
sha2 = { version = "0.9" }
hex = { version = "0.4" }
[dev-dependencies]

View File

@@ -155,9 +155,9 @@ fn download_and_verify(url: &str, hash: &str) -> crate::Result<Vec<u8>> {
common::print_info("validating hash")?;
let mut hasher = sha2::Sha256::new();
hasher.input(&data);
hasher.update(&data);
let url_hash = hasher.result().to_vec();
let url_hash = hasher.finalize().to_vec();
let expected_hash = hex::decode(hash)?;
if expected_hash == url_hash {