diff --git a/automation_tools/sha_update_list.cfg b/automation_tools/sha_update_list.cfg index 8d6734f4..4c50bed1 100644 --- a/automation_tools/sha_update_list.cfg +++ b/automation_tools/sha_update_list.cfg @@ -1 +1,3 @@ -https://buildbot.libretro.com/assets/cores/DOOM/Doom%20%28Shareware%29.zip^DOOMSHAPLACEHOLDER \ No newline at end of file +# The proper format for this file is +# URL^PLACEHOLDERTEXT +https://buildbot.libretro.com/assets/cores/DOOM/Doom%20%28Shareware%29.zip^DOOMSHA \ No newline at end of file diff --git a/automation_tools/update_sha.sh b/automation_tools/update_sha.sh index dde066fa..6514e6a7 100644 --- a/automation_tools/update_sha.sh +++ b/automation_tools/update_sha.sh @@ -5,7 +5,6 @@ rd_manifest=${GITHUB_WORKSPACE}/net.retrodeck.retrodeck.yml sha_update_list=${GITHUB_WORKSPACE}/automation_tools/sha_update_list.cfg -counter=5 echo "Manifest location: $rd_manifest" echo "Hash update list location: $sha_update_list" @@ -14,12 +13,6 @@ echo "Update list contents:" cat "$sha_update_list" echo -while [ $counter -gt 0 ] -do - echo $counter - counter=$(( $counter - 1 )) -done - while IFS="^" read -r url placeholder do echo @@ -27,5 +20,6 @@ do echo "URL to hash: $url" echo hash=$(curl -sL "$url" | sha256sum | cut -d ' ' -f1) + echo "Hash found: $hash" sed -i 's^'"$placeholder"'^'"$hash"'^' $rd_manifest -done < <(cat "$sha_update_list") \ No newline at end of file +done < "$sha_update_list" \ No newline at end of file