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 ed920f3 commit e24cadf
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.xpi
*.exe
2 changes: 1 addition & 1 deletion install.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,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>
</Description>
Expand Down
9 changes: 9 additions & 0 deletions release.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@echo off
set VER=1.2.2

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

set XPI=pxruler-%VER%.xpi
if exist %XPI% del %XPI%
zip -r9q %XPI% * -x .git/* .gitignore update.xml LICENSE README.md *.cmd *.xpi *.exe
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.2.2</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/proxy-privacy-ruler/releases/download/1.2.2/pxruler-1.2.2.xpi</em:updateLink>
</RDF:Description>
</em:targetApplication>
<em:targetApplication>
<RDF:Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>38.0</em:minVersion>
<em:maxVersion>56.*</em:maxVersion>
<em:updateLink>https://github.com/JustOff/proxy-privacy-ruler/releases/download/1.2.2/pxruler-1.2.2.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/proxy-privacy-ruler/releases/download/1.2.2/pxruler-1.2.2.xpi</em:updateLink>
</RDF:Description>
</em:targetApplication>
</RDF:Description>
</RDF:li>
</RDF:Seq>
</em:updates>
</RDF:Description>
</RDF:RDF>

0 comments on commit e24cadf

Please sign in to comment.