Skip to content
This repository has been archived by the owner on Dec 29, 2020. It is now read-only.

Commit

Permalink
add sha256 checksum
Browse files Browse the repository at this point in the history
  • Loading branch information
holazt committed Feb 14, 2019
1 parent 010df36 commit 691f92d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
5 changes: 5 additions & 0 deletions scripts/appimage_after_success.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
7 changes: 5 additions & 2 deletions scripts/snap_after_success.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
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}"
6 changes: 4 additions & 2 deletions scripts/snap_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 691f92d

Please sign in to comment.