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