Skip to content

Commit

Permalink
0
Browse files Browse the repository at this point in the history
  • Loading branch information
zzlb0224 committed Jun 6, 2024
1 parent 555d5bd commit 26f82ca
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions zotero-plugin.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",

Expand Down Expand Up @@ -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: {
Expand Down

0 comments on commit 26f82ca

Please sign in to comment.