Add functional bundling of ComicInfo File with static test name
This commit is contained in:
parent
b5812fa32c
commit
25ef82cf2d
4 changed files with 368 additions and 5 deletions
src/lib
|
@ -97,6 +97,17 @@
|
|||
}
|
||||
console.log(metadata);
|
||||
if (bundleDirectory != "") {
|
||||
let savePath = saveDirectory;
|
||||
if (saveDirectory.endsWith("/")) {
|
||||
savePath += "test.cbz";
|
||||
}
|
||||
else {
|
||||
savePath += "/test.cbz";
|
||||
}
|
||||
|
||||
let comicInfoPath = await invoke("save", { metadata: metadata, path: tempDirPath});
|
||||
let bundlePath = await invoke("save_bundle", { bundleDir: bundleDirectory, metadataFilePath: comicInfoPath, savePath: savePath })
|
||||
returnMessage = "Saved '" + metadata.title + "' bundled to '" + bundlePath + "'";
|
||||
}
|
||||
else {
|
||||
let comicInfoPath = await invoke("save", { message: metadata, path: saveDirectory })
|
||||
|
|
Reference in a new issue