mirror of
https://github.com/alterware/alterware-launcher.git
synced 2025-12-04 07:17:50 +00:00
store local hash instead of remote
This commit is contained in:
@@ -289,7 +289,8 @@ async fn update_dir(
|
|||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
.unwrap();
|
.unwrap();
|
||||||
hashes.insert(file_name.to_owned(), file.hash.to_lowercase());
|
let hash = misc::get_file_sha1(&file_path);
|
||||||
|
hashes.insert(file_name.to_owned(), hash.to_lowercase());
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
if file_name.ends_with(".exe") {
|
if file_name.ends_with(".exe") {
|
||||||
let perms = std::os::unix::fs::PermissionsExt::from_mode(0o755);
|
let perms = std::os::unix::fs::PermissionsExt::from_mode(0o755);
|
||||||
|
|||||||
Reference in New Issue
Block a user