mirror of
https://github.com/Yuyi-Oak/BlueArchiveToolkit.git
synced 2026-07-22 07:26:44 +08:00
feat: add official resource sync pipeline
Add the production-facing official update service and bat-official-sync watch CLI for unattended resource synchronization. Support launcher-resource discovery without installing the launcher, remote marker snapshots, local manifest audit and repair, official seed hash validation, bootstrap caching, richer Addressables coverage, SQLite resource persistence, and FFI JSON helpers.
This commit is contained in:
@@ -26,6 +26,10 @@ pub struct ResourceEntry {
|
||||
pub size: u64,
|
||||
/// 资源类型
|
||||
pub resource_type: ResourceType,
|
||||
/// 资源在 Manifest 中的逻辑地址
|
||||
pub address: Option<String>,
|
||||
/// 该资源依赖的其他资源标识
|
||||
pub dependencies: Vec<String>,
|
||||
}
|
||||
|
||||
/// 资源
|
||||
@@ -50,6 +54,8 @@ mod tests {
|
||||
hash: "abc123".to_string(),
|
||||
size: 1024,
|
||||
resource_type: ResourceType::AssetBundle,
|
||||
address: None,
|
||||
dependencies: Vec::new(),
|
||||
};
|
||||
|
||||
assert_eq!(entry.path, "test.bundle");
|
||||
|
||||
Reference in New Issue
Block a user