From 26f82cae14ee674f53220058c1c91a98c5e86398 Mon Sep 17 00:00:00 2001 From: "zhoulibin@xiaoxin" <125377187@qq.com> Date: Thu, 6 Jun 2024 09:25:36 +0800 Subject: [PATCH] 0 --- zotero-plugin.config.ts | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/zotero-plugin.config.ts b/zotero-plugin.config.ts index d1659e0b..153b3a88 100644 --- a/zotero-plugin.config.ts +++ b/zotero-plugin.config.ts @@ -8,9 +8,8 @@ export default defineConfig({ name: pkg.config.addonName, id: pkg.config.addonID, namespace: pkg.config.addonRef, - updateURL: `https://github.com/{{owner}}/{{repo}}/releases/download/release/${ - pkg.version.includes("-") ? "update-beta.json" : "update.json" - }`, + updateURL: `https://github.com/{{owner}}/{{repo}}/releases/download/release/${pkg.version.includes("-") ? "update-beta.json" : "update.json" + }`, xpiDownloadLink: "https://github.com/{{owner}}/{{repo}}/releases/download/v{{version}}/{{xpiName}}.xpi", @@ -40,15 +39,15 @@ export default defineConfig({ }, ], // If you want to checkout update.json into the repository, uncomment the following lines: - // makeUpdateJson: { - // hash: false, - // }, - // hooks: { - // "build:makeUpdateJSON": (ctx) => { - // copyFileSync("build/update.json", "update.json"); - // copyFileSync("build/update-beta.json", "update-beta.json"); - // }, - // }, + makeUpdateJson: { + hash: false, + }, + hooks: { + "build:makeUpdateJSON": (ctx) => { + copyFileSync("build/update.json", "update.json"); + copyFileSync("build/update-beta.json", "update-beta.json"); + }, + }, }, // release: { // bumpp: {