contrib: helper script

This commit is contained in:
Florian Dold 2022-10-13 14:11:05 +02:00
parent ded00b680a
commit 3a91f3ff88
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

17
contrib/publish-prebuilt.sh Executable file
View File

@ -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