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

24 lines
509 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 ..
2020-11-25 18:27:58 +01:00
mkdir -p extension
mv "./tmp/$zipfile" ./extension/
rm -rf tmp
2020-11-25 18:27:58 +01:00
echo "Packed webextension: extension/$zipfile"