aboutsummaryrefslogtreecommitdiff
path: root/webextension/pack.sh
diff options
context:
space:
mode:
Diffstat (limited to 'webextension/pack.sh')
-rwxr-xr-xwebextension/pack.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/webextension/pack.sh b/webextension/pack.sh
new file mode 100755
index 000000000..01abb01b4
--- /dev/null
+++ b/webextension/pack.sh
@@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+
+set -eu
+
+if [[ ! -e package.json ]]; then
+ echo "Please run this from the root of the repo.">&2
+ exit 1
+fi
+
+vers_manifest=$(jq -r '.version' webextension/manifest.json)
+
+rm -rf dist/wx
+mkdir -p dist/wx
+cp webextension/manifest.json dist/wx/
+cp -r webextension/static/* dist/wx/
+cp -r dist/webextension/* dist/wx/
+
+cd dist
+
+zip -r "taler-wallet-${vers_manifest}.zip" wx