Improve snap build script: check snapcraft exit status, write checksum

This commit is contained in:
Lee Miller 2023-09-24 23:44:41 +03:00
parent 1616732dd6
commit 7ca18587c1
Signed by untrusted user: lee.miller
GPG Key ID: 4F97A5EA88F4AB63

View File

@ -1,7 +1,9 @@
#!/bin/sh
#!/bin/bash
cd packages && snapcraft
pushd packages && snapcraft || exit 1
cd ..
popd
mkdir -p ../out
mv packages/pybitmessage*.snap ../out
cd ../out
sha256sum pybitmessage*.snap > SHA256SUMS