Skip to content

Commit

Permalink
Update zip build script
Browse files Browse the repository at this point in the history
  • Loading branch information
stijn-uva committed May 22, 2024
1 parent 628ee55 commit 90ed690
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions create-zip.sh
Original file line number Diff line number Diff line change
@@ -1,5 +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"
sed -I '' -E "s/v[0-9]+\.[0-9]+\.[0-9]+/v$VERSION/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" -x "tests*" -x "images/zeeschuimer-full.png" -x "images/chirico-full.png" -x "images/example_screenshot.png"

0 comments on commit 90ed690

Please sign in to comment.