Skip to content

Commit 02fc723

Browse files
authored
fix: fixed download pandoc version (#15)
1 parent 309feae commit 02fc723

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

download.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ async function extractAsset(zipPath, downloadDir) {
3636
}
3737

3838
async function run() {
39-
const { body: release } = await got('https://api.github.com/repos/jgm/pandoc/releases/latest', { json: true });
39+
const VERSION = '3.1.11'
40+
const { body: release } = await got(`https://api.github.com/repos/jgm/pandoc/releases/tags/${VERSION}`, { json: true });
4041
const donwloadRoot = path.join(__dirname, './.pandoc-local');
4142
const downloadDir = path.join(donwloadRoot, release.tag_name);
4243

0 commit comments

Comments
 (0)