From f6204cb534468d9b6f78ea871e446e4778d24149 Mon Sep 17 00:00:00 2001 From: Stijn Peeters Date: Mon, 2 Oct 2023 17:20:14 +0200 Subject: [PATCH] Add shell script to create extension file --- create-zip.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 create-zip.sh diff --git a/create-zip.sh b/create-zip.sh new file mode 100755 index 0000000..df9d664 --- /dev/null +++ b/create-zip.sh @@ -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/v[^<]+<\/span>/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"