Skip to content

Commit

Permalink
Update setup-pandoc.js
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Mar 29, 2023
1 parent 91e3ef2 commit 687df83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup-pandoc/lib/setup-pandoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ exports.getPandoc = getPandoc;
function installPandocMac(version) {
var _a;
return __awaiter(this, void 0, void 0, function* () {
const is_new_macos_installer = compare(version, "3.1.2", ">=") ? true : false;
// Since 3.1.2, Pandoc uses cabal instead of stack to build the macOS binary.
const is_new_macos_installer = (0, compare_versions_1.compare)(version, "3.1.2", ">=") ? true : false;
const fileName = is_new_macos_installer ? util.format("pandoc-%s-x86_64-macOS.pkg", version) : util.format("pandoc-%s-macOS.pkg", version);
const downloadUrl = util.format("https://github.com/jgm/pandoc/releases/download/%s/%s", version, fileName);
let downloadPath;
Expand Down

0 comments on commit 687df83

Please sign in to comment.