aboutsummaryrefslogtreecommitdiff
path: root/webextension/pack.sh
blob: ef005014f8695804fc0e1f0d4dc67d20cc0fbcd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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/wx

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

rm -f -- "$zipfile"
zip -r "$zipfile" ./*