diff --git a/electron-builder.json b/electron-builder.json index 0a6526fc..d5a2c22f 100644 --- a/electron-builder.json +++ b/electron-builder.json @@ -43,7 +43,7 @@ "entitlements": "build/entitlements.mac.plist", "entitlementsInherit": "build/entitlements.mac.plist", "binaries": [ - "out/mac/Yank Note.app/Contents/Resources/app.asar.unpacked/bin/darwin-pandoc-2.17.1.1" + "out/mac/Yank Note.app/Contents/Resources/app.asar.unpacked/bin/darwin-pandoc-2.14.2" ], "target": [ "dmg", diff --git a/scripts/download-pandoc.js b/scripts/download-pandoc.js index ab8e25ba..32d6edfe 100644 --- a/scripts/download-pandoc.js +++ b/scripts/download-pandoc.js @@ -3,7 +3,7 @@ const fs = require('fs') const path = require('path') const request = require('request') -const filename = os.platform() + '-' + 'pandoc-2.17.1.1' + (os.platform() === 'win32' ? '.exe' : '') +const filename = os.platform() + '-' + 'pandoc-2.14.2' + (os.platform() === 'win32' ? '.exe' : '') const downloadUrl = 'https://github.com/purocean/yn/releases/download/v1.1/' + filename const dir = path.join(__dirname, '../bin') diff --git a/src/main/server/convert.ts b/src/main/server/convert.ts index 46f79c7a..1e37f3ed 100644 --- a/src/main/server/convert.ts +++ b/src/main/server/convert.ts @@ -4,7 +4,7 @@ import * as path from 'path' import { spawn } from 'child_process' import { BIN_DIR, PANDOC_REFERENCE_FILE, RESOURCES_DIR, USER_DIR } from '../constant' -const binPath = path.join(BIN_DIR, os.platform() + '-pandoc-2.17.1.1' + (os.platform() === 'win32' ? '.exe' : '')) +const binPath = path.join(BIN_DIR, os.platform() + '-pandoc-2.14.2' + (os.platform() === 'win32' ? '.exe' : '')) const docxTplPath = path.join(USER_DIR, PANDOC_REFERENCE_FILE) const filterPath = path.join(RESOURCES_DIR, './pandoc-filter.lua')