Browse Source

chore: print libheif version

C4illin 5 tháng trước cách đây
mục cha
commit
62f44fb052
1 tập tin đã thay đổi với 11 bổ sung0 xóa
  1. 11 0
      src/helpers/printVersions.ts

+ 11 - 0
src/helpers/printVersions.ts

@@ -1,5 +1,6 @@
 import { exec } from "node:child_process";
 import { version } from "../../package.json";
+
 console.log(`ConvertX v${version}`);
 
 if (process.env.NODE_ENV === "production") {
@@ -113,6 +114,16 @@ if (process.env.NODE_ENV === "production") {
     }
   });
 
+  exec("heif-info -v", (error, stdout) => {
+    if (error) {
+      console.error("libheif is not installed");
+    }
+
+    if (stdout) {
+      console.log(`libheif v${stdout.split("\n")[0]}`);
+    }
+  });
+
   exec("bun -v", (error, stdout) => {
     if (error) {
       console.error("Bun is not installed. wait what");