mirror of
https://github.com/Yuyi-Oak/BlueArchiveToolkit.git
synced 2026-07-22 08:26:44 +08:00
feat: validate official zip structure
This commit is contained in:
@@ -1781,6 +1781,7 @@ struct VerificationItemReport {
|
||||
actual_bytes: Option<u64>,
|
||||
expected_blake3: Option<String>,
|
||||
actual_blake3: Option<String>,
|
||||
zip_error: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize)]
|
||||
@@ -1830,6 +1831,7 @@ fn run_verify_command(options: &CliOptions) -> anyhow::Result<bool> {
|
||||
actual_bytes: item.actual_bytes,
|
||||
expected_blake3: item.expected_blake3.clone(),
|
||||
actual_blake3: item.actual_blake3.clone(),
|
||||
zip_error: item.zip_error.clone(),
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
let healthy = update_report.update_status == OfficialUpdateStatus::UpToDate
|
||||
|
||||
Reference in New Issue
Block a user