ksud: re-extract ksud when necessary close #1242

This commit is contained in:
weishu
2024-01-04 12:08:58 +08:00
parent 097e291d93
commit b99701d216
4 changed files with 7 additions and 6 deletions

View File

@@ -17,11 +17,12 @@ struct Asset;
#[folder = "bin/x86_64"]
struct Asset;
pub fn ensure_binaries() -> Result<()> {
pub fn ensure_binaries(ignore_if_exist: bool) -> Result<()> {
for file in Asset::iter() {
utils::ensure_binary(
format!("{BINARY_DIR}{file}"),
&Asset::get(&file).unwrap().data,
ignore_if_exist,
)?
}
Ok(())