GYRODSU: migrated to component, added missing files

This commit is contained in:
XargonWan 2024-01-24 08:55:26 +01:00
parent 5c5add03d3
commit 65c5eedd71
3 changed files with 18 additions and 8 deletions

View file

@ -437,10 +437,6 @@ finit() {
install_retrodeck_starterpack
fi
# Installing GyroDSU
echo "Initializing GyroDSU" #TODO: LOGGER
/app/retrodeck/install-gyrodsu.sh
) | # Don't delete this!
zenity --icon-name=net.retrodeck.retrodeck --progress --no-cancel --pulsate --auto-close \
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \

View file

@ -745,6 +745,17 @@ prepare_emulator() {
fi
if [[ "$emulator" =~ ^(gyrodsu|GyroDSU|all)$ ]]; then
echo "----------------------"
echo "Initializing GYRODSU"
echo "----------------------"
rm -rf /var/data/gyrodsu
mkdir -p /var/data/gyrodsu
cd /app/retrodeck/gyrodsu
/app/retrodeck/gyrodsu/install-gyrodsu.sh
cd - # back to the previous dir
fi
# Update presets for all emulators after any reset or move
if [[ ! "$emulator" == "retrodeck" ]]; then
build_retrodeck_current_presets

View file

@ -724,10 +724,13 @@ modules:
- name: gyrodsu
buildsystem: simple
build-commands:
- mkdir -p ${FLATPAK_DEST}/retrodeck
- cp install.sh ${FLATPAK_DEST}/retrodeck/install-gyrodsu.sh
- chmod +x ${FLATPAK_DEST}/retrodeck/install-gyrodsu.sh
- sed -i 's/\$HOME/\/var\/data\/gyrodsu/g' ${FLATPAK_DEST}/retrodeck/install-gyrodsu.sh
- mkdir -p ${FLATPAK_DEST}/retrodeck/gyrodsu
- cp install.sh ${FLATPAK_DEST}/retrodeck/gyrodsu
- cp logcurrentrun.sh ${FLATPAK_DEST}/retrodeck/gyrodsu
- cp sdgyrodsu ${FLATPAK_DEST}/retrodeck/gyrodsu
- cp sdgyrodsu.service ${FLATPAK_DEST}/retrodeck/gyrodsu
- chmod +x ${FLATPAK_DEST}/retrodeck/gyrodsu/install-gyrodsu.sh
- sed -i 's/\$HOME/\/var\/data\/gyrodsu/g' ${FLATPAK_DEST}/retrodeck/gyrodsu/install-gyrodsu.sh
sources:
- type: archive
url: https://github.com/kmicki/SteamDeckGyroDSU/releases/latest/download/SteamDeckGyroDSUSetup.zip