Calculate checksum when building release packages

This commit is contained in:
zonyitoo
2020-01-09 23:35:59 +08:00
parent 657f09dffb
commit b0f1b5a8e7
2 changed files with 7 additions and 0 deletions

1
.gitignore vendored
View File

@@ -4,6 +4,7 @@
/build/*.zip
/build/target
/build/install
/build/*.sha256
/dev
/*.log
/debian/*.log

View File

@@ -54,6 +54,9 @@ function build() {
if [[ $? != "0" ]]; then
exit $?
fi
cd "${CUR_DIR}"
shasum -a 256 "${PKG_NAME}" > "${PKG_NAME}.sha256"
elif [[ "$TARGET" == *"-windows-"* ]]; then
PKG_NAME="shadowsocks-v${VERSION}-stable.${TARGET}.zip"
PKG_PATH="${CUR_DIR}/${PKG_NAME}"
@@ -69,6 +72,9 @@ function build() {
if [[ $? != "0" ]]; then
exit $?
fi
cd "${CUR_DIR}"
shasum -a 256 "${PKG_NAME}" > "${PKG_NAME}.sha256"
fi
echo "* Done build package ${PKG_NAME}"