Skip to content

Commit

Permalink
Allow custom LibreOffice binary path via environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
daido1976 committed Nov 13, 2024
1 parent 6e23c3c commit e969b90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string> {
await cleanupTempFiles();
Expand Down

0 comments on commit e969b90

Please sign in to comment.