Skip to content

Commit

Permalink
Set up release automation
Browse files Browse the repository at this point in the history
  • Loading branch information
JustOff committed Feb 22, 2021
1 parent 9ecef75 commit d019666
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
*.swp
*.xpi
*.exe
node_modules/
dist/
11 changes: 11 additions & 0 deletions release.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@echo off
set VER=1.1.4

sed -i -b -E "s/version>.+?</version>%VER%</" xul\install.rdf
sed -i -E "s/version>.+?</version>%VER%</; s/download\/.+?\/esrc-explorer-.+?\.xpi/download\/%VER%\/esrc-explorer-%VER%\.xpi/" update.xml

call node make.js xul

set XPI=esrc-explorer-%VER%.xpi
if exist %XPI% del %XPI%
copy dist\%XPI% .
38 changes: 38 additions & 0 deletions update.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?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 about="urn:mozilla:extension:[email protected]">
<em:updates>
<RDF:Seq>
<RDF:li>
<RDF:Description>
<em:version>1.1.4</em:version>
<em:targetApplication>
<RDF:Description>
<em:id>{8de7fcbb-c55c-4fbe-bfc5-fc555c87dbc4}</em:id>
<em:minVersion>27.0</em:minVersion>
<em:maxVersion>29.*</em:maxVersion>
<em:updateLink>https://github.com/JustOff/esrc-explorer/releases/download/1.1.4/esrc-explorer-1.1.4.xpi</em:updateLink>
</RDF:Description>
</em:targetApplication>
<em:targetApplication>
<RDF:Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>45.0</em:minVersion>
<em:maxVersion>56.*</em:maxVersion>
<em:updateLink>https://github.com/JustOff/esrc-explorer/releases/download/1.1.4/esrc-explorer-1.1.4.xpi</em:updateLink>
</RDF:Description>
</em:targetApplication>
<em:targetApplication>
<RDF:Description>
<em:id>{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}</em:id>
<em:minVersion>2.40</em:minVersion>
<em:maxVersion>2.*</em:maxVersion>
<em:updateLink>https://github.com/JustOff/esrc-explorer/releases/download/1.1.4/esrc-explorer-1.1.4.xpi</em:updateLink>
</RDF:Description>
</em:targetApplication>
</RDF:Description>
</RDF:li>
</RDF:Seq>
</em:updates>
</RDF:Description>
</RDF:RDF>
4 changes: 2 additions & 2 deletions xul/install.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<Description>
<em:id>{8de7fcbb-c55c-4fbe-bfc5-fc555c87dbc4}</em:id>
<em:minVersion>27.0.0</em:minVersion>
<em:maxVersion>28.*</em:maxVersion>
<em:maxVersion>29.*</em:maxVersion>
</Description>
</em:targetApplication>
<em:targetApplication>
Expand All @@ -28,7 +28,7 @@
<Description>
<em:id>{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}</em:id>
<em:minVersion>2.40</em:minVersion>
<em:maxVersion>*</em:maxVersion>
<em:maxVersion>2.*</em:maxVersion>
</Description>
</em:targetApplication>
</Description>
Expand Down

0 comments on commit d019666

Please sign in to comment.