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

22 lines
433 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)
2020-11-25 16:04:07 +01:00
zipfile="taler-wallet-webextension-${vers_manifest}.zip"
2020-08-10 18:49:23 +02:00
mkdir tmp
jq '. | .name = "GNU Taler Wallet" ' manifest.json > tmp/manifest.json
cp -r dist static tmp/
cd tmp
2020-08-10 18:49:23 +02:00
zip -r "$zipfile" dist static manifest.json
cd ..
mv "./tmp/$zipfile" ./
rm -rf tmp