2020-04-06 21:53:29 +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' 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/
|
|
|
|
|
2020-06-03 13:04:00 +02:00
|
|
|
cd dist/wx
|
2020-04-06 21:53:29 +02:00
|
|
|
|
2020-06-03 13:04:00 +02:00
|
|
|
zip -r "../taler-wallet-${vers_manifest}.zip" ./*
|