summaryrefslogtreecommitdiff
path: root/release.cmd
blob: 55fbcaafdf262e429cb256f3e768c6f5935b29e0 (plain)
1
2
3
4
5
6
7
8
9
@echo off
set VER=1.2.5

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

set XPI=github-wc-polyfill-%VER%.xpi
if exist %XPI% del %XPI%
zip -r9q %XPI% bootstrap.js icon.png install.rdf