From 3a91f3ff88db8f00255caa39746c70f1e47e0a86 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 13 Oct 2022 14:11:05 +0200 Subject: [PATCH] contrib: helper script --- contrib/publish-prebuilt.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 contrib/publish-prebuilt.sh 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