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:
2026-07-05 23:49:56 +08:00
parent 99e66a48d7
commit 789402c887
35 changed files with 6262 additions and 177 deletions
+6
View File
@@ -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");