feat: add calibre

issue #191
This commit is contained in:
C4illin 2024-12-07 02:38:30 +01:00
parent 447b4c5e5c
commit 03d3edfff6
6 changed files with 123 additions and 22 deletions

View file

@ -103,6 +103,16 @@ if (process.env.NODE_ENV === "production") {
}
});
exec("ebook-convert --version", (error, stdout) => {
if (error) {
console.error("ebook-convert (calibre) is not installed");
}
if (stdout) {
console.log(stdout.split("\n")[0]);
}
});
exec("bun -v", (error, stdout) => {
if (error) {
console.error("Bun is not installed. wait what");