zotero-plugin 1.4.20 → 1.4.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/bin/release.js +2 -0
  2. package/package.json +1 -1
  3. package/rdf.js +15 -0
package/bin/release.js CHANGED
@@ -175,6 +175,8 @@ async function main() {
175
175
  }
176
176
  await uploadAsset(release, path.join(root_1.default, `xpi/${xpi}`), 'application/vnd.zotero.plugin');
177
177
  }
178
+ if (process.env.VERBOSE)
179
+ console.log({ tag: continuous_integration_1.ContinuousIntegration.tag, issues, release, tags });
178
180
  for (const issue of Array.from(issues)) {
179
181
  await announce(issue, release);
180
182
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zotero-plugin",
3
- "version": "1.4.20",
3
+ "version": "1.4.22",
4
4
  "description": "Zotero plugin builder",
5
5
  "homepage": "https://github.com/retorquere/zotero-plugin/wiki",
6
6
  "bin": {
package/rdf.js CHANGED
@@ -50,3 +50,18 @@ console.log('generating update.rdf');
50
50
  template = fs.readFileSync(path.join(__dirname, 'update.rdf.pug'), 'utf8');
51
51
  template = pug.render(template, options_and_vars);
52
52
  fs.writeFileSync(path.join(root_1.default, 'gen/update.rdf'), template, { encoding: 'utf8' });
53
+ console.log('generating manifest.json');
54
+ fs.writeFileSync(path.join(root_1.default, 'build/manifest.json'), JSON.stringify({
55
+ manifest_version: 2,
56
+ name: options_and_vars.name,
57
+ version: options_and_vars.version,
58
+ description: options_and_vars.description,
59
+ applications: {
60
+ zotero: {
61
+ id: options_and_vars.id,
62
+ update_url: options_and_vars.updateURL.replace('/update.rdf', '/updates.json'),
63
+ strict_min_version: '6.999',
64
+ strict_max_version: '7.0.*',
65
+ },
66
+ },
67
+ }, null, 2));