refactor(runtime-bundle): extract runtime bundle planning

Plan provider destinations and assets in the crate. Adapt the plan to the Service wire format at the call site.
This commit is contained in:
Tunglies
2026-12-01 22:08:47 +08:00
parent 177c73f6d7
commit 4142fb07fd
10 changed files with 202 additions and 100 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ async fn validation_fingerprint(yaml: &str) -> u64 {
.map(|exe| exe.with_file_name(format!("{}{}", core.as_str(), std::env::consts::EXE_SUFFIX)));
// The test run reads geo databases from the app dir; a geo update must revalidate.
let geo = dirs::app_home_dir().into_iter().flat_map(|dir| {
super::runtime_bundle::GEO_ASSETS
clash_verge_runtime_bundle::GEO_ASSETS
.iter()
.map(move |asset| dir.join(asset))
});