mirror of
https://github.com/Yuyi-Oak/BlueArchiveToolkit.git
synced 2026-07-22 07:26:44 +08:00
feat: prepare experiment push package
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
use bat_adapters::official::launcher::YostarJpInstalledGameBootstrap;
|
||||
use std::env;
|
||||
use std::path::PathBuf;
|
||||
|
||||
fn main() -> anyhow::Result<()> {
|
||||
let mut args = env::args().skip(1);
|
||||
let root = args
|
||||
.next()
|
||||
.map(PathBuf::from)
|
||||
.ok_or_else(|| anyhow::anyhow!("usage: yostar_jp_client_bootstrap <official-game-root>"))?;
|
||||
|
||||
let bootstrap =
|
||||
YostarJpInstalledGameBootstrap::from_game_root(&root).map_err(anyhow::Error::msg)?;
|
||||
|
||||
println!("client_root={}", root.display());
|
||||
println!("app_version={}", bootstrap.app_version);
|
||||
println!("executable_name={}", bootstrap.executable_name);
|
||||
println!("executable_params={:?}", bootstrap.executable_params);
|
||||
println!(
|
||||
"manifest_basis={}",
|
||||
bootstrap.basis.as_deref().unwrap_or("<none>")
|
||||
);
|
||||
println!(
|
||||
"manifest_file_count={}",
|
||||
bootstrap
|
||||
.manifest_file_count
|
||||
.map(|count| count.to_string())
|
||||
.unwrap_or_else(|| "<none>".to_string())
|
||||
);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
Reference in New Issue
Block a user