From 536e1419f257a42ceb510f05cf9146ac7d142fa5 Mon Sep 17 00:00:00 2001 From: Aditya Dalal Date: Wed, 13 Jan 2016 16:30:33 -0500 Subject: [PATCH] find_sparkle_appcast: Change to checkpoint --- developer/bin/find_sparkle_appcast | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/developer/bin/find_sparkle_appcast b/developer/bin/find_sparkle_appcast index f768f573ae..d30c47da86 100755 --- a/developer/bin/find_sparkle_appcast +++ b/developer/bin/find_sparkle_appcast @@ -63,14 +63,14 @@ fi appcast_http_response="$(curl --silent --head --write-out '%{http_code}' "${appcast_url}" -o /dev/null)" [[ "${appcast_http_response}" != '200' ]] && appcast_found_error "returned a non-200 (OK) HTTP response code (${appcast_http_response})" -appcast_sha=$(curl --silent "${appcast_url}" | shasum --algorithm 256 | awk '{ print $1 }') -[[ "${appcast_sha}" == 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855' ]] && appcast_found_error 'seems to be empty' +appcast_checkpoint=$(curl --silent "${appcast_url}" | sed 's|[^<]*||g' | shasum --algorithm 256 | awk '{ print $1 }') +[[ "${appcast_checkpoint}" == 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855' ]] && appcast_found_error 'seems to be empty' # output appcast echo "A Sparkle appcast was found. You sould add it to your cask as appcast '${appcast_url}', - :sha256 => '${appcast_sha}' + :checkpoint => '${appcast_checkpoint}' You should likely also add 'auto_updates true'"