From e969b9049612c7343817c5691fb29a626a501dfc Mon Sep 17 00:00:00 2001 From: daido1976 Date: Wed, 13 Nov 2024 17:00:52 +0900 Subject: [PATCH] Allow custom LibreOffice binary path via environment variable --- src/convert.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/convert.ts b/src/convert.ts index dfbb157..b8653a1 100644 --- a/src/convert.ts +++ b/src/convert.ts @@ -14,7 +14,7 @@ export const DEFAULT_ARGS = [ '--nologo', '--norestore', ]; -const LO_BINARY_PATH = 'libreoffice7.6'; +const LO_BINARY_PATH = process.env.LO_BINARY_PATH ?? 'libreoffice7.6'; export async function convertTo(filename: string, format: string): Promise { await cleanupTempFiles();