VITA3K: moved it in the RO FS

This commit is contained in:
XargonWan 2023-12-06 11:48:22 +01:00
parent 12b65df1c1
commit af2889bba1
2 changed files with 5 additions and 16 deletions

View file

@ -674,14 +674,6 @@ prepare_emulator() {
echo "Initializing Vita3K" echo "Initializing Vita3K"
echo "----------------------" echo "----------------------"
# extracting the emulator
# NOTE: the emulator is writing in "." so it must be placed in the rw filesystem. A symlink of the binary is already placed in /app/bin/Vita3K
rm -rf "/var/data/Vita3K"
mkdir -p "/var/data/Vita3K"
unzip "/app/retrodeck/vita3k.zip" -d "/var/data/Vita3K"
chmod +x "/var/data/Vita3K/Vita3K"
rm -f "/var/data/Vita3K/update-vita3k.sh"
# copying config file # copying config file
cp -fvr "$emuconfigs/vita3k/config.yml" "/var/config/Vita3K" cp -fvr "$emuconfigs/vita3k/config.yml" "/var/config/Vita3K"
# TODO: this step is to be done properly: Replacing RETRODECKHOMEDIR placeholder # TODO: this step is to be done properly: Replacing RETRODECKHOMEDIR placeholder

View file

@ -1228,20 +1228,17 @@ modules:
# Cemu - END # Cemu - END
# Vita3K - START # Vita3K - START
# Vita3K is writing some files in its own directory
# So that is placed in /var/data/Vita3K and not in the readonly filesystem
# This module is just fetching the file so it will be unique for this build
- name: vita3k - name: vita3k
buildsystem: simple buildsystem: simple
build-commands: build-commands:
# Creating an empty symlink that will point to Vita3K binary
- ln -s /var/data/Vita3K/Vita3K ${FLATPAK_DEST}/bin/Vita3K
# Copying the user icon # Copying the user icon
- mkdir -p ${FLATPAK_DEST}/retrodeck - mkdir -p ${FLATPAK_DEST}/retrodeck
- cp retrodeck.png ${FLATPAK_DEST}/retrodeck - cp retrodeck.png ${FLATPAK_DEST}/retrodeck
# preparing the vita3k zip for later - unzip "ubuntu-latest.zip" -d "${FLATPAK_DEST}/bin/Vita3K"
- mv ubuntu-latest.zip ${FLATPAK_DEST}/retrodeck/vita3k.zip - chmod +x ""${FLATPAK_DEST}/bin/Vita3K/Vita3K"
- rm -f "${FLATPAK_DEST}/bin/Vita3K/update-vita3k.sh"
- ln -s ${FLATPAK_DEST}/bin/Vita3K/Vita3K ${FLATPAK_DEST}/bin/Vita3K
sources: sources:
- type: file - type: file
url: https://github.com/Vita3K/Vita3K/releases/download/continuous/ubuntu-latest.zip url: https://github.com/Vita3K/Vita3K/releases/download/continuous/ubuntu-latest.zip