From 691f92de9df0a574feb3cb2267e2a9c5697cfd99 Mon Sep 17 00:00:00 2001 From: Ahmed Zetao Yang Date: Thu, 14 Feb 2019 14:25:10 +0800 Subject: [PATCH] add sha256 checksum --- scripts/appimage_after_success.sh | 5 +++++ scripts/snap_after_success.sh | 7 +++++-- scripts/snap_script.sh | 6 ++++-- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/scripts/appimage_after_success.sh b/scripts/appimage_after_success.sh index 69c2984..528c26a 100644 --- a/scripts/appimage_after_success.sh +++ b/scripts/appimage_after_success.sh @@ -2,4 +2,9 @@ set -e +echo "File name: flameshot_${VERSION}_${ARCH}.${EXTEN} ." + +SHA256=$(sha256sum "${DIST_PATH}/flameshot_${VERSION}_${ARCH}.${EXTEN}") +echo "SHA256: ${SHA256} ." + travis_retry bash "${ROOT_PATH}/scripts/services/0x0.st.sh" "${DIST_PATH}/flameshot_${VERSION}_${ARCH}.${EXTEN}" \ No newline at end of file diff --git a/scripts/snap_after_success.sh b/scripts/snap_after_success.sh index 9555c1e..fb40840 100644 --- a/scripts/snap_after_success.sh +++ b/scripts/snap_after_success.sh @@ -2,6 +2,9 @@ set -e -mv "results/*.snap" "results/flameshot-app_${VERSION}_${ARCH}.${EXTEN}" +echo "File name: flameshot-app_${VERSION}_amd64.${EXTEN} ." -travis_retry bash "${ROOT_PATH}/scripts/services/0x0.st.sh" "results/*.snap" \ No newline at end of file +SHA256=$(sha256sum "${RESULT_PATH}/flameshot-app_${VERSION}_amd64.${EXTEN}") +echo "SHA256: ${SHA256} ." + +travis_retry bash "${ROOT_PATH}/scripts/services/0x0.st.sh" "${RESULT_PATH}/flameshot-app_${VERSION}_amd64.${EXTEN}" \ No newline at end of file diff --git a/scripts/snap_script.sh b/scripts/snap_script.sh index dfce922..1669574 100644 --- a/scripts/snap_script.sh +++ b/scripts/snap_script.sh @@ -7,8 +7,10 @@ docker exec -i snap-builder snapcraft # docker exec -i snap-builder snapcraft enable-ci travis --refresh # move snap package +RESULT_PATH="${SRC_PATH}"/results +mkdir "${RESULT_PATH}" + cd flameshot -mkdir results docker exec -i snap-builder sh -c "mv flameshot*.snap flameshot-app_amd64.snap" # docker cp still doesn't support wildcards -docker cp snap-builder:$SRC_PATH/flameshot-app_amd64.snap results/flameshot-app_${VERSION}_amd64_`git describe --always`.snap +docker cp snap-builder:$SRC_PATH/flameshot-app_amd64.snap $RESULT_PATH/flameshot-app_${VERSION}_amd64.snap