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

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