Skip to content

Commit

Permalink
Add shell script to create extension file
Browse files Browse the repository at this point in the history
  • Loading branch information
stijn-uva committed Oct 2, 2023
1 parent e1ac8bc commit f6204cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions create-zip.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/zsh
VERSION=$(grep '"version"' manifest.json | cut -d'"' -f 4);
sed -I '' -E "s/\"version\": \"v[^\"]+\"/\"version\": \"v$VERSION\"/g" .zenodo.json
sed -I '' -E "s/<span class=\"version\">v[^<]+<\/span>/<span class=\"version\">v$VERSION<\/span>/g" popup/interface.html
zip -r zeeschuimer-v$VERSION.zip . -x "*.DS_Store" "__MACOSX" js/mitm.js js/ponyfill-2.0.2.js js/streamsaver-2.0.3.js js/webtorrent.min.js -x "*.git*" -x "*.idea*" -x "create-zip.sh" -x "*.zip" -x "*.xpi"

0 comments on commit f6204cb

Please sign in to comment.