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
2026-02-17 22:42:48 +01:00
parent d319087c44
commit e356f50927
3 changed files with 53 additions and 1 deletions

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",