zotero-chinese / zotero-plugins

Zotero Plugins Collection | Zotero 插件合集 | Awesome Zotero Plugins
https://zotero-chinese.com/plugins/
MIT License
418 stars 15 forks source link

拆 XPI 包读取和校验插件信息 #41

Closed northword closed 7 months ago

northword commented 11 months ago

拆xpi包,读取manifest.json或install.rdf,补全空字段(如 描述);校验release.targetZoteroVersion与xpi定义的是否一致;补全id。

ref: https://github.com/zotero-chinese/zotero-plugins/pull/38#pullrequestreview-1708316540

l0o0 commented 11 months ago

如果服务器资源可以允许解压读取,也是可以的。我当时就是担心git action 的资源处理这个,会不会太慢了。

syt2 commented 10 months ago

currentVersion 字段表示的是xpi包发布所对应GitHub仓库内的tag名,非xpi包版本 是否考虑从xpi包中解析xpi的版本至一个新的字段,如xpiVersion

northword commented 10 months ago

currentVersion 字段表示的是xpi包发布所对应GitHub仓库内的tag名,非xpi包版本 是否考虑从xpi包中解析xpi的版本至一个新的字段,如xpiVersion

tag 是否有用?无用的话把这个直接替换为 XPI 包中的版本也可

syt2 commented 10 months ago

tag 是否有用?无用的话把这个直接替换为 XPI 包中的版本也可

有用的,下载量的标签会用

northword commented 10 months ago

是否考虑从xpi包中解析xpi的版本至一个新的字段,如xpiVersion

那也可以。

或者也可以 tagName 替换成实际的tagName(也就是现在的currentVersion),然后currentVersion写成xpi包中的,这样可以少增加一个字段,可以减小json文件的体积。(如果tagName无用的话)

我在赶几个考核作业,可能要周末或下周才能搞了,也许你有时间和兴趣的话,可以 PR。

这个仓库的网站目前并不依赖这个json文件,如果你要 PR 的话,可以按你的需求改。