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

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