diff --git a/scripts/patch-obsidian.js b/scripts/patch-obsidian.js index c11b673..023353e 100644 --- a/scripts/patch-obsidian.js +++ b/scripts/patch-obsidian.js @@ -6,6 +6,7 @@ const fs = require("fs"); const path = require("path"); +const { getVersion } = require("../server/version"); const asarDir = process.argv[2]; if (!asarDir) { @@ -13,7 +14,7 @@ if (!asarDir) { process.exit(1); } -function patchHtml(filePath) { +function patchHtml(filePath, version) { const backupPath = filePath + ".orig"; if (!fs.existsSync(filePath) && !fs.existsSync(backupPath)) { @@ -46,8 +47,8 @@ function patchHtml(filePath) { // Inject ignis scripts before the first \n' + - '\n' + + `\n` + + `\n` + '