Skip to content

Commit

Permalink
rename fn
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog committed Dec 20, 2023
1 parent 2242505 commit e90d80d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tooling/bundler/src/bundle/windows/nsis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::{
common::CommandExt,
windows::util::{
download, download_and_verify, download_webview2_bootstrapper,
download_webview2_offline_installer, extract_zip, verify_path_hash, HashAlgorithm,
download_webview2_offline_installer, extract_zip, verify_file_hash, HashAlgorithm,
NSIS_OUTPUT_FOLDER_NAME, NSIS_UPDATER_OUTPUT_FOLDER_NAME,
},
},
Expand Down Expand Up @@ -86,7 +86,7 @@ pub fn bundle_project(settings: &Settings, updater: bool) -> crate::Result<Vec<P
let mismatched = NSIS_REQUIRED_FILES_HASH
.iter()
.filter(|(p, _, hash, hash_algorithm)| {
verify_path_hash(nsis_toolset_path.join(p), hash, *hash_algorithm).is_err()
verify_file_hash(nsis_toolset_path.join(p), hash, *hash_algorithm).is_err()
})
.collect::<Vec<_>>();

Expand Down
2 changes: 1 addition & 1 deletion tooling/bundler/src/bundle/windows/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ fn verify_data_with_hasher(data: &[u8], hash: &str, mut hasher: impl Digest) ->
}
}

pub fn verify_path_hash<P: AsRef<Path>>(
pub fn verify_file_hash<P: AsRef<Path>>(
path: P,
hash: &str,
hash_algorithm: HashAlgorithm,
Expand Down

0 comments on commit e90d80d

Please sign in to comment.