Skip to content

Commit

Permalink
chore(release): Improve release scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
msbrogli committed Nov 11, 2024
1 parent 5877f66 commit bd832ac
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
7 changes: 7 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ step0() {
echo - npm $(npm -v)
echo - python $(python --version | awk '{print $2}')
echo
git log -n1
echo

if grep "TEAM-ID-HERE" package.json >/dev/null; then
echo [ERROR] Team ID not in package.json.
exit -1
fi
}

step1() {
Expand Down
20 changes: 20 additions & 0 deletions shasum-sign.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/sh
#
# Generate SHA256SUMS and SHA256SUMS.asc from the most recent build.
#

# Setting flags to fail early, strict variable usage and verbose output
set -e
set -u
set -x

rm -f ./dist/SHA256SUMS
rm -f ./dist/SHA256SUMS.asc

# remove spaces from all filenames
(cd ./dist && find . -maxdepth 1 -type f -iname "* *" -print0 | xargs -0 -I {} bash -c 'mv "$0" "${0// /.}"' {})

# generate SHA256SUMS
(cd ./dist && find . -type f -iname \*wallet\* -mmin -180 -maxdepth 1 | xargs -L1 basename | xargs shasum -a 256 > SHA256SUMS)

gpg -s --detach-sign -a -u 0x8DE497EA ./dist/SHA256SUMS

0 comments on commit bd832ac

Please sign in to comment.