summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/pack.sh
blob: 65837f493baa2b60dea856fdb29c4e7d8227c127 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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' manifest.json)

zipfile="taler-wallet-${vers_manifest}.zip"

rm -f -- "$zipfile"
zip -r "$zipfile" dist static manifest.json