fix: update files
This commit is contained in:
parent
56ac4d5320
commit
7de5e38d81
3
build.js
3
build.js
@ -97,6 +97,7 @@ async function main() {
|
|||||||
copyFolderRecursiveSync("addon", buildDir);
|
copyFolderRecursiveSync("addon", buildDir);
|
||||||
|
|
||||||
copyFileSync("update-template.json", "update.json");
|
copyFileSync("update-template.json", "update.json");
|
||||||
|
copyFileSync("update-template.rdf", "update.rdf");
|
||||||
|
|
||||||
await esbuild
|
await esbuild
|
||||||
.build({
|
.build({
|
||||||
@ -119,8 +120,10 @@ async function main() {
|
|||||||
path.join(buildDir, "**/*.json"),
|
path.join(buildDir, "**/*.json"),
|
||||||
path.join(buildDir, "addon/defaults", "**/*.js"),
|
path.join(buildDir, "addon/defaults", "**/*.js"),
|
||||||
path.join(buildDir, "addon/chrome.manifest"),
|
path.join(buildDir, "addon/chrome.manifest"),
|
||||||
|
path.join(buildDir, "addon/manifest.json"),
|
||||||
path.join(buildDir, "addon/bootstrap.js"),
|
path.join(buildDir, "addon/bootstrap.js"),
|
||||||
"update.json",
|
"update.json",
|
||||||
|
"update.rdf",
|
||||||
],
|
],
|
||||||
from: [
|
from: [
|
||||||
/__author__/g,
|
/__author__/g,
|
||||||
|
30
update-template.rdf
Normal file
30
update-template.rdf
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#">
|
||||||
|
<rdf:Description rdf:about="urn:mozilla:extension:__addonID__">
|
||||||
|
<em:updates>
|
||||||
|
<rdf:Seq>
|
||||||
|
<rdf:li>
|
||||||
|
<rdf:Description>
|
||||||
|
<em:version>__buildVersion__</em:version>
|
||||||
|
<em:targetApplication>
|
||||||
|
<rdf:Description>
|
||||||
|
<em:id>zotero@chnm.gmu.edu</em:id>
|
||||||
|
<em:minVersion>6.999</em:minVersion>
|
||||||
|
<em:maxVersion>*</em:maxVersion>
|
||||||
|
<em:updateLink>__releasepage__</em:updateLink>
|
||||||
|
</rdf:Description>
|
||||||
|
</em:targetApplication>
|
||||||
|
<em:targetApplication>
|
||||||
|
<rdf:Description>
|
||||||
|
<em:id>juris-m@juris-m.github.io</em:id>
|
||||||
|
<em:minVersion>6.999</em:minVersion>
|
||||||
|
<em:maxVersion>*</em:maxVersion>
|
||||||
|
<em:updateLink>__releasepage__</em:updateLink>
|
||||||
|
</rdf:Description>
|
||||||
|
</em:targetApplication>
|
||||||
|
</rdf:Description>
|
||||||
|
</rdf:li>
|
||||||
|
</rdf:Seq>
|
||||||
|
</em:updates>
|
||||||
|
</rdf:Description>
|
||||||
|
</rdf:RDF>
|
10
update.rdf
10
update.rdf
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#">
|
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#">
|
||||||
<rdf:Description rdf:about="urn:mozilla:extension:plugintemplate@euclpts.com">
|
<rdf:Description rdf:about="urn:mozilla:extension:addontemplate@euclpts.com">
|
||||||
<em:updates>
|
<em:updates>
|
||||||
<rdf:Seq>
|
<rdf:Seq>
|
||||||
<rdf:li>
|
<rdf:li>
|
||||||
@ -9,17 +9,17 @@
|
|||||||
<em:targetApplication>
|
<em:targetApplication>
|
||||||
<rdf:Description>
|
<rdf:Description>
|
||||||
<em:id>zotero@chnm.gmu.edu</em:id>
|
<em:id>zotero@chnm.gmu.edu</em:id>
|
||||||
<em:minVersion>5.0</em:minVersion>
|
<em:minVersion>6.999</em:minVersion>
|
||||||
<em:maxVersion>*</em:maxVersion>
|
<em:maxVersion>*</em:maxVersion>
|
||||||
<em:updateLink>__releasepage__</em:updateLink>
|
<em:updateLink>https://github.com/windingwind/zotero-addon-template/releases/latest/download/zotero-addon-template.xpi</em:updateLink>
|
||||||
</rdf:Description>
|
</rdf:Description>
|
||||||
</em:targetApplication>
|
</em:targetApplication>
|
||||||
<em:targetApplication>
|
<em:targetApplication>
|
||||||
<rdf:Description>
|
<rdf:Description>
|
||||||
<em:id>juris-m@juris-m.github.io</em:id>
|
<em:id>juris-m@juris-m.github.io</em:id>
|
||||||
<em:minVersion>5.0</em:minVersion>
|
<em:minVersion>6.999</em:minVersion>
|
||||||
<em:maxVersion>*</em:maxVersion>
|
<em:maxVersion>*</em:maxVersion>
|
||||||
<em:updateLink>__releasepage__</em:updateLink>
|
<em:updateLink>https://github.com/windingwind/zotero-addon-template/releases/latest/download/zotero-addon-template.xpi</em:updateLink>
|
||||||
</rdf:Description>
|
</rdf:Description>
|
||||||
</em:targetApplication>
|
</em:targetApplication>
|
||||||
</rdf:Description>
|
</rdf:Description>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user