mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 05:55:38 +00:00
SHA update tool for automation during building
and also prepackage DOOOOOM!
This commit is contained in:
parent
334ed066a4
commit
f8aac040f6
1
automation_tools/sha_update_list.cfg
Normal file
1
automation_tools/sha_update_list.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
https://buildbot.libretro.com/assets/cores/DOOM/Doom%20%28Shareware%29.zip,DOOMSHAPLACEHOLDER
|
13
automation_tools/update_sha.sh
Normal file
13
automation_tools/update_sha.sh
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
# For the file paths to work correctly, call this script with this command from the cloned repo folder root:
|
||||
# sh automation_tools/update_sha.sh
|
||||
|
||||
rd_manifest=net.retrodeck.retrodeck.yml
|
||||
sha_update_list=automation_tools/sha_to_update.cfg
|
||||
|
||||
while IFS="," read -r url placeholder
|
||||
do
|
||||
hash=$(curl -sL "$url" | sha256sum | cut -d ' ' -f1)
|
||||
sed -i 's^'"$placeholder"'^'"$hash"'^' $rd_manifest
|
||||
done < $sha_update_list
|
|
@ -1898,6 +1898,9 @@ finit() {
|
|||
dir_prep "$roms_folder/pico8" "$bios_folder/pico-8/carts" # Symlink default game location to RD roms for cleanliness (this location is overridden anyway by the --root_path launch argument anyway)
|
||||
dir_prep "$saves_folder/pico-8" "$bios_folder/pico-8/cdata" # PICO-8 saves folder
|
||||
|
||||
# Add packaged extras, after the ROMS folder has been initialized
|
||||
cp /app/retrodeck/extras/doom1.wad "$roms_folder/doom/doom1.wad" # No -f in case the user already has it
|
||||
|
||||
ra_init
|
||||
standalones_init
|
||||
) |
|
||||
|
|
|
@ -422,6 +422,16 @@ modules:
|
|||
url: https://buildbot.libretro.com/stable/1.15.0/linux/x86_64/RetroArch_cores.7z
|
||||
sha256: 2230bc38eaf87406efd0c2b7bdd1cf9e813ba113505600f14a7ef9eb06f8c7c0
|
||||
|
||||
- name: doom-shareware
|
||||
buildsystem: simple
|
||||
build-commands:
|
||||
- mkdir -p ${FLATPAK_DEST}/retrodeck/extras
|
||||
- cp doom1.wad ${FLATPAK_DEST}/retrodeck/extras/
|
||||
sources:
|
||||
- type: archive
|
||||
url: https://buildbot.libretro.com/assets/cores/DOOM/Doom%20%28Shareware%29.zip
|
||||
sha256: DOOMSHAPLACEHOLDER
|
||||
|
||||
# PPSSPP - START
|
||||
# https://github.com/flathub/org.ppsspp.PPSSPP
|
||||
|
||||
|
|
|
@ -72,6 +72,7 @@ post_update() {
|
|||
# - New ~/retrodeck/mods and ~/retrodeck/texture_packs directories are added and symlinked to multiple different emulators (where supported)
|
||||
# - Expose ES-DE gamelists folder to user at ~/retrodeck/gamelists
|
||||
# - Add new sections [paths] and [options] headers to retrodeck.cfg
|
||||
# - Prepackaged DOOM!
|
||||
|
||||
mkdir -p "$mods_folder"
|
||||
mkdir -p "$texture_packs_folder"
|
||||
|
@ -88,6 +89,8 @@ post_update() {
|
|||
sed -i '/version=.*/G' $rd_conf
|
||||
sed -i '3i [paths]' $rd_conf
|
||||
sed -i '/^power_user=.*/i [options]' $rd_conf
|
||||
|
||||
cp /app/retrodeck/extras/doom1.wad "$roms_folder/doom/doom1.wad" # No -f in case the user already has it
|
||||
fi
|
||||
|
||||
# The following commands are run every time.
|
||||
|
|
Loading…
Reference in a new issue