mirror of
https://github.com/patarapolw/cjdic2.git
synced 2026-11-08 17:35:18 +00:00
extract image assets for yomitan zip
This commit is contained in:
1 parent
79deaf9372
commit
52c25992ab
11 files changed
+114
-52
No files matched your search
@@ -17,7 +17,7 @@ fn main() -> Result<(), anyhow::Error> {
|
||||
println!("{:?}", p);
|
||||
})?;
|
||||
|
||||
let zip_dir = Path::new("src-tauri/resources/yomitan");
|
||||
let zip_dir = Path::new("tmp/yomitan");
|
||||
println!("zip_dir: {:?}", absolute(zip_dir)); // Relative to workspace root
|
||||
|
||||
for entry in
|
||||
@@ -31,9 +31,15 @@ fn main() -> Result<(), anyhow::Error> {
|
||||
|
||||
println!(
|
||||
"{:?}",
|
||||
AppService::import_yomitan_zip_file(&mut writer, &p, "ja", |progress| {
|
||||
println!("{:?}", progress);
|
||||
})?,
|
||||
AppService::import_yomitan_zip_file(
|
||||
&mut writer,
|
||||
&p,
|
||||
&zip_dir.to_path_buf(),
|
||||
"ja",
|
||||
|progress| {
|
||||
println!("{:?}", progress);
|
||||
}
|
||||
)?,
|
||||
);
|
||||
} else {
|
||||
println!("not zip_file: {:?}", p);
|
||||
|
||||
Reference in new issue
Block a user