blob: 50a2f25052983d92753386294cbf6e6cdac3843a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/bash
set -euo pipefail
VERSION=$1
echo "Making a new release of stripe-cli $VERSION"
echo "Getting checksum..."
CHECKSUM=$(curl -L https://github.com/stripe/stripe-cli/releases/download/v${VERSION}/stripe-checksums.txt | grep linux_x86_64.tar.gz | awk '{print $1}')
echo "Building PKGBUILD..."
sed "s/VERSION/$VERSION/g;s/CHECKSUM/$CHECKSUM/g" PKGBUILD.template > PKGBUILD
echo "Making and installing package locally..."
makepkg -i
echo "Generating .SRCINFO..."
makepkg --printsrcinfo > .SRCINFO
echo "Committing to git..."
git commit -am "Release of $VERSION"
echo "Test that the new version works with stripe -v, then push"
|