mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 14:05:39 +00:00
Update pre-build automation
Now information can be read from the general server environment to inject into the flatpak manifest
This commit is contained in:
parent
dc94e3b3c1
commit
e527f85ca6
2
.github/workflows/cooker-selfhosted.yml
vendored
2
.github/workflows/cooker-selfhosted.yml
vendored
|
@ -39,7 +39,7 @@ jobs:
|
||||||
word2=$(curl -s https://random-word-api.herokuapp.com/word?length=5 | tr -d '[]"')
|
word2=$(curl -s https://random-word-api.herokuapp.com/word?length=5 | tr -d '[]"')
|
||||||
capitalized_word2="$(tr '[:lower:]' '[:upper:]' <<< ${word2:0:1})${word2:1}"
|
capitalized_word2="$(tr '[:lower:]' '[:upper:]' <<< ${word2:0:1})${word2:1}"
|
||||||
result=$capitalized_word1$capitalized_word2
|
result=$capitalized_word1$capitalized_word2
|
||||||
echo $result >> ${GITHUB_WORKSPACE}/buildid
|
echo $result > ${GITHUB_WORKSPACE}/buildid
|
||||||
ls -lah ${GITHUB_WORKSPACE} # DEBUG
|
ls -lah ${GITHUB_WORKSPACE} # DEBUG
|
||||||
cat ${GITHUB_WORKSPACE}/buildid # DEBUG
|
cat ${GITHUB_WORKSPACE}/buildid # DEBUG
|
||||||
echo "buildid=$result" >> $GITHUB_ENV
|
echo "buildid=$result" >> $GITHUB_ENV
|
||||||
|
|
|
@ -4,3 +4,4 @@ hash^DOOMSHAPLACEHOLDER^https://buildbot.libretro.com/assets/cores/DOOM/Doom%20%
|
||||||
hash^VITASHAPLACEHOLDER^https://github.com/Vita3K/Vita3K/releases/download/continuous/ubuntu-latest.zip
|
hash^VITASHAPLACEHOLDER^https://github.com/Vita3K/Vita3K/releases/download/continuous/ubuntu-latest.zip
|
||||||
hash^DUCKSTATIONSHAPLACEHOLDER^https://github.com/stenzek/duckstation/releases/download/preview/DuckStation-x64.AppImage
|
hash^DUCKSTATIONSHAPLACEHOLDER^https://github.com/stenzek/duckstation/releases/download/preview/DuckStation-x64.AppImage
|
||||||
latestcommit^UNIVERSALDYNAMICINPUTCOMMITPLACEHOLDER^https://github.com/Venomalia/UniversalDynamicInput^main
|
latestcommit^UNIVERSALDYNAMICINPUTCOMMITPLACEHOLDER^https://github.com/Venomalia/UniversalDynamicInput^main
|
||||||
|
outside_info^VERSIONPLACEHOLDER^${GITHUB_WORKSPACE}/buildid
|
||||||
|
|
|
@ -53,6 +53,15 @@ do
|
||||||
appimagehash=$(curl -sL "$appimageurl" | sha256sum | cut -d ' ' -f1)
|
appimagehash=$(curl -sL "$appimageurl" | sha256sum | cut -d ' ' -f1)
|
||||||
echo "AppImage hash found: $appimagehash"
|
echo "AppImage hash found: $appimagehash"
|
||||||
/bin/sed -i 's^'"HASHFOR$placeholder"'^'"$appimagehash"'^' $rd_manifest
|
/bin/sed -i 's^'"HASHFOR$placeholder"'^'"$appimagehash"'^' $rd_manifest
|
||||||
|
elif [[ "$action" == "outside_info" ]]; then
|
||||||
|
if [[ "$url" = \$* ]]; then # If value is a reference to a variable name
|
||||||
|
eval url="$url"
|
||||||
|
fi
|
||||||
|
echo
|
||||||
|
echo "Placeholder text: $placeholder"
|
||||||
|
echo "Information being injected: $(cat $url)"
|
||||||
|
echo
|
||||||
|
/bin/sed -i 's^'"$placeholder"'^'"$(cat $url)"'^' $rd_manifest
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done < "$automation_task_list"
|
done < "$automation_task_list"
|
||||||
|
|
Loading…
Reference in a new issue