aboutsummaryrefslogtreecommitdiff
path: root/contrib/publish-prebuilt.sh
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-10-13 14:11:05 +0200
committerFlorian Dold <florian@dold.me>2022-10-13 14:11:05 +0200
commit3a91f3ff88db8f00255caa39746c70f1e47e0a86 (patch)
tree39281ef6ab2aade669542c6c1260cfdff8e60cc4 /contrib/publish-prebuilt.sh
parentded00b680a776d03cd8c928354c87c0be8690f56 (diff)
contrib: helper script
Diffstat (limited to 'contrib/publish-prebuilt.sh')
-rwxr-xr-xcontrib/publish-prebuilt.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/contrib/publish-prebuilt.sh b/contrib/publish-prebuilt.sh
new file mode 100755
index 000000000..94bd274ff
--- /dev/null
+++ b/contrib/publish-prebuilt.sh
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+
+# Helper script to publish a prebuilt wallet-core.
+# Assumes that the prebuilt branch is checked out
+# at ./prebuilt as a git worktree.
+
+set -eu
+
+TAG=$1
+
+pnpm run compile
+mkdir prebuilt/$TAG
+cp packages/taler-wallet-embedded/dist/taler-wallet-embedded.js prebuilt/$TAG/taler-wallet-embedded.js
+git -C prebuilt add .
+git -C prebuilt commit -a -m "prebuilt $TAG"
+git -C prebuilt push
+sha256sum prebuilt/$TAG/taler-wallet-android.js