diff options
Diffstat (limited to 'packages/taler-wallet-webextension/pack.sh')
-rwxr-xr-x | packages/taler-wallet-webextension/pack.sh | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/packages/taler-wallet-webextension/pack.sh b/packages/taler-wallet-webextension/pack.sh index e762ab867..e96c5d673 100755 --- a/packages/taler-wallet-webextension/pack.sh +++ b/packages/taler-wallet-webextension/pack.sh @@ -8,15 +8,29 @@ if [[ ! -e package.json ]]; then exit 1 fi -vers_manifest=$(jq -r '.version' manifest.json) +vers_manifest=$(jq -r '.version' manifest-v2.json) zipfile="taler-wallet-webextension-${vers_manifest}.zip" TEMP_DIR=$(mktemp -d) -jq '. | .name = "GNU Taler Wallet" ' manifest.json > $TEMP_DIR/manifest.json +jq '. | .name = "GNU Taler Wallet" ' manifest-v2.json > $TEMP_DIR/manifest.json cp -r dist static $TEMP_DIR (cd $TEMP_DIR && zip -r "$zipfile" dist static manifest.json) -mkdir -p extension -mv "$TEMP_DIR/$zipfile" ./extension/ +mkdir -p extension/v2 +mv "$TEMP_DIR/$zipfile" ./extension/v2/ rm -rf $TEMP_DIR -echo "Packed webextension: extension/$zipfile" +echo "Packed webextension: extension/v2/$zipfile" + + +vers_manifest=$(jq -r '.version' manifest-v3.json) + +zipfile="taler-wallet-webextension-${vers_manifest}.zip" + +TEMP_DIR=$(mktemp -d) +jq '. | .name = "GNU Taler Wallet" ' manifest-v3.json > $TEMP_DIR/manifest.json +cp -r dist static $TEMP_DIR +(cd $TEMP_DIR && zip -r "$zipfile" dist static manifest.json) +mkdir -p extension/v3 +mv "$TEMP_DIR/$zipfile" ./extension/v3/ +rm -rf $TEMP_DIR +echo "Packed webextension: extension/v3/$zipfile" |