mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-02-09 01:59:16 +08:00
Calculate checksum when building release packages
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,6 +4,7 @@
|
||||
/build/*.zip
|
||||
/build/target
|
||||
/build/install
|
||||
/build/*.sha256
|
||||
/dev
|
||||
/*.log
|
||||
/debian/*.log
|
||||
|
||||
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user