| @@ -21,7 +21,7 @@ PROJECT_BASEDIR=$(dirname "$SCRIPT_BASEDIR") | |||||
| rename_wheel() { | rename_wheel() { | ||||
| cd "$PROJECT_BASEDIR/output" || exit | cd "$PROJECT_BASEDIR/output" || exit | ||||
| VERSION="$1" | |||||
| VERSION="$("$PYTHON" -c 'import platform; print(platform.python_version())')" | |||||
| PACKAGE_LIST=$(ls mindinsight-*-any.whl) || exit | PACKAGE_LIST=$(ls mindinsight-*-any.whl) || exit | ||||
| for PACKAGE_ORIG in $PACKAGE_LIST; do | for PACKAGE_ORIG in $PACKAGE_LIST; do | ||||
| MINDINSIGHT_VERSION=$(echo "$PACKAGE_ORIG" | awk -F"-" '{print $2}') | MINDINSIGHT_VERSION=$(echo "$PACKAGE_ORIG" | awk -F"-" '{print $2}') | ||||
| @@ -35,6 +35,14 @@ rename_wheel() { | |||||
| done | done | ||||
| } | } | ||||
| write_checksum() { | |||||
| cd "$PROJECT_BASEDIR/output" || exit | |||||
| PACKAGE_LIST=$(ls mindinsight-*.whl) || exit | |||||
| for PACKAGE_NAME in $PACKAGE_LIST; do | |||||
| sha256sum -b "$PACKAGE_NAME" >"$PACKAGE_NAME.sha256" | |||||
| done | |||||
| } | |||||
| build_wheel() { | build_wheel() { | ||||
| cd "$PROJECT_BASEDIR" || exit | cd "$PROJECT_BASEDIR" || exit | ||||
| @@ -76,8 +84,8 @@ build_wheel() { | |||||
| mv dist output | mv dist output | ||||
| rename_wheel "$("$PYTHON" -c 'import platform; print(platform.python_version())')" | |||||
| rename_wheel | |||||
| write_checksum | |||||
| clean_files | clean_files | ||||
| echo "Build success, output directory is: $PROJECT_BASEDIR/output" | echo "Build success, output directory is: $PROJECT_BASEDIR/output" | ||||