mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-20 02:55:38 +08:00
feat: script to update version.json (#11875)
* chore: do not modify version.json time in cpp * feat: add version time updater script * chore: add version.ps1 to workflow * feat: implement previous logic from validator.ps1 * feat: add version bool for update-resources * fix: wrong condition on OTA step
This commit is contained in:
@@ -1431,8 +1431,8 @@ bool update_version_info(const fs::path& input_dir, const fs::path& output_dir)
|
||||
result["activity"]["time"] = time_var;
|
||||
result["activity"]["name"] = name;
|
||||
}
|
||||
static auto time = asst::utils::get_format_time();
|
||||
result["last_updated"] = time;
|
||||
auto version_opt = json::open(output_dir / "version.json");
|
||||
result["last_updated"] = version_opt->at("last_updated").as_string();
|
||||
|
||||
std::ofstream ofs(output_dir / "version.json", std::ios::out);
|
||||
ofs << result.format() << '\n';
|
||||
|
||||
Reference in New Issue
Block a user