fix: patch scaffold URL parser to support self-hosted Gitea (.eu TLD)

zotero-plugin-scaffold hardcodes a .com-only regex in parseRepoUrl,
causing build failures with non-.com repository URLs. Add:
- scripts/patch-scaffold.mjs: postinstall script that fixes the regex
- zotero-plugin.config.ts: explicit xpiDownloadLink and updateURL
  so scaffold generates correct update.json without relying on the parser
This commit is contained in:
Ignacio Ballesteros committed 2026-02-17 22:42:48 +01:00
1 parent d319087c44
commit e356f50927
3 files changed
+53 -1

No files matched your search

+2 -1
View File
@@ -17,7 +17,8 @@
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"format": "prettier --write \"src/**/*.ts\" \"addon/**/*.js\"",
"format:check": "prettier --check \"src/**/*.ts\" \"addon/**/*.js\""
"format:check": "prettier --check \"src/**/*.ts\" \"addon/**/*.js\"",
"postinstall": "node scripts/patch-scaffold.mjs"
},
"repository": {
"type": "git",