From 62f44fb052d4bda48517c7275534606daadc5a30 Mon Sep 17 00:00:00 2001 From: C4illin Date: Tue, 18 Feb 2025 20:05:46 +0100 Subject: [PATCH] chore: print libheif version --- src/helpers/printVersions.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/helpers/printVersions.ts b/src/helpers/printVersions.ts index a7d5add..acf3907 100644 --- a/src/helpers/printVersions.ts +++ b/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");