mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-25 23:45:39 +00:00
SHA placeholder automation debugging
This commit is contained in:
parent
1bdb4c6674
commit
db8b118626
1
.github/workflows/cooker-selfhosted.yml
vendored
1
.github/workflows/cooker-selfhosted.yml
vendored
|
@ -44,6 +44,7 @@ jobs:
|
||||||
org.freedesktop.Sdk.Extension.dotnet6/x86_64/21.08
|
org.freedesktop.Sdk.Extension.dotnet6/x86_64/21.08
|
||||||
echo ${GITHUB_WORKSPACE} #DEBUG
|
echo ${GITHUB_WORKSPACE} #DEBUG
|
||||||
df -h ${GITHUB_WORKSPACE} #DEBUG
|
df -h ${GITHUB_WORKSPACE} #DEBUG
|
||||||
|
ls -la ${GITHUB_WORKSPACE} #DEBUG
|
||||||
sh ${GITHUB_WORKSPACE}/automation_tools/update_sha.sh # Run SHA placehold replacement script for dynamic archives
|
sh ${GITHUB_WORKSPACE}/automation_tools/update_sha.sh # Run SHA placehold replacement script for dynamic archives
|
||||||
|
|
||||||
- name: Build flatpak
|
- name: Build flatpak
|
||||||
|
|
|
@ -6,8 +6,14 @@
|
||||||
rd_manifest=${GITHUB_WORKSPACE}/net.retrodeck.retrodeck.yml
|
rd_manifest=${GITHUB_WORKSPACE}/net.retrodeck.retrodeck.yml
|
||||||
sha_update_list=${GITHUB_WORKSPACE}/automation_tools/sha_update_list.cfg
|
sha_update_list=${GITHUB_WORKSPACE}/automation_tools/sha_update_list.cfg
|
||||||
|
|
||||||
|
echo "Manifest location: $rd_manifest"
|
||||||
|
echo "Hash update list location: $sha_update_list"
|
||||||
|
echo
|
||||||
|
|
||||||
while IFS="^" read -r url placeholder
|
while IFS="^" read -r url placeholder
|
||||||
do
|
do
|
||||||
|
echo "Placeholder text: $placeholder"
|
||||||
|
echo "URL to hash: $url"
|
||||||
hash=$(curl -sL "$url" | sha256sum | cut -d ' ' -f1)
|
hash=$(curl -sL "$url" | sha256sum | cut -d ' ' -f1)
|
||||||
sed -i 's^'"$placeholder"'^'"$hash"'^' $rd_manifest
|
sed -i 's^'"$placeholder"'^'"$hash"'^' $rd_manifest
|
||||||
done < $sha_update_list
|
done < $sha_update_list
|
Loading…
Reference in a new issue