Skip to content

Commit b0f1b5a

Browse files
committed
Calculate checksum when building release packages
1 parent 657f09d commit b0f1b5a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
/build/*.zip
55
/build/target
66
/build/install
7+
/build/*.sha256
78
/dev
89
/*.log
910
/debian/*.log

build/build-release

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ function build() {
5454
if [[ $? != "0" ]]; then
5555
exit $?
5656
fi
57+
58+
cd "${CUR_DIR}"
59+
shasum -a 256 "${PKG_NAME}" > "${PKG_NAME}.sha256"
5760
elif [[ "$TARGET" == *"-windows-"* ]]; then
5861
PKG_NAME="shadowsocks-v${VERSION}-stable.${TARGET}.zip"
5962
PKG_PATH="${CUR_DIR}/${PKG_NAME}"
@@ -69,6 +72,9 @@ function build() {
6972
if [[ $? != "0" ]]; then
7073
exit $?
7174
fi
75+
76+
cd "${CUR_DIR}"
77+
shasum -a 256 "${PKG_NAME}" > "${PKG_NAME}.sha256"
7278
fi
7379

7480
echo "* Done build package ${PKG_NAME}"

0 commit comments

Comments
 (0)