clean and build script, for fresh tests
This commit is contained in:
parent
b4b0d3ff61
commit
2bb98b1315
3
packages/taler-wallet-webextension/clean_and_build.sh
Executable file
3
packages/taler-wallet-webextension/clean_and_build.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
pnpm clean && pnpm compile && rm -rf extension/ && ./pack.sh && (cd extension/ && unzip taler*.zip)
|
||||||
|
|
@ -11,13 +11,11 @@ vers_manifest=$(jq -r '.version' manifest.json)
|
|||||||
|
|
||||||
zipfile="taler-wallet-webextension-${vers_manifest}.zip"
|
zipfile="taler-wallet-webextension-${vers_manifest}.zip"
|
||||||
|
|
||||||
mkdir tmp
|
TEMP_DIR=$(mktemp -d)
|
||||||
jq '. | .name = "GNU Taler Wallet" ' manifest.json > tmp/manifest.json
|
jq '. | .name = "GNU Taler Wallet" ' manifest.json > $TEMP_DIR/manifest.json
|
||||||
cp -r dist static tmp/
|
cp -r dist static $TEMP_DIR
|
||||||
cd tmp
|
(cd $TEMP_DIR && zip -r "$zipfile" dist static manifest.json)
|
||||||
zip -r "$zipfile" dist static manifest.json
|
|
||||||
cd ..
|
|
||||||
mkdir -p extension
|
mkdir -p extension
|
||||||
mv "./tmp/$zipfile" ./extension/
|
mv "$TEMP_DIR/$zipfile" ./extension/
|
||||||
rm -rf tmp
|
rm -rf $TEMP_DIR
|
||||||
echo "Packed webextension: extension/$zipfile"
|
echo "Packed webextension: extension/$zipfile"
|
||||||
|
Loading…
Reference in New Issue
Block a user