marp-team / marp-cli

A CLI interface for Marp and Marpit based converters
MIT License
1.85k stars 105 forks source link

Make `--pdf` work on FreeBSD #582

Open obiwac opened 2 months ago

obiwac commented 2 months ago

chrome-launcher doesn't support FreeBSD, and just calling linux() on FreeBSD would only work when the user sets CHROME_PATH because the Chromium port on FreeBSD calls the binary "chrome" and not "google-chrome[-stable]" or "chromium[-stable]" like on Linux.

So this PR adds a really simple function which looks for CHROME_PATH and also does which chrome when on FreeBSD.