wallet-core/packages/taler-wallet-webextension/pack.sh

16 lines
289 B
Bash
Raw Normal View History

2020-08-10 18:49:23 +02:00
#!/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