diff --git a/net.retrodeck.retrodeck.yml b/net.retrodeck.retrodeck.yml index 03afc9ef..3beacbfa 100644 --- a/net.retrodeck.retrodeck.yml +++ b/net.retrodeck.retrodeck.yml @@ -605,8 +605,6 @@ modules: # Step 4: Set up license directory and move license files - mkdir -p "${FLATPAK_DEST}/retrodeck/licenses" - mv LICENSE.txt THIRDPARTY.md "${FLATPAK_DEST}/retrodeck/licenses" - # One off to make it work with SDL2 - - ln -s "/lib/x86_64-linux-gnu/libSDL2-2.0.so.0" "${FLATPAK_DEST}/lib/libSDL2.so" sources: - type: archive url: https://github.com/RetroDECK/Pancakes-bin/releases/download/1.1.0.1403/pancakes-Release-linux_x64.tar.gz @@ -797,6 +795,13 @@ modules: # Install MIME Type - install -Dm 644 config/retrodeck/net.retrodeck.retrodeck.mime.xml /app/share/mime/packages/net.retrodeck.retrodeck.mime.xml + # One off to make Pancakes (and possibly other components) work with SDL2, this line is here as it must be run after LibMan + - | + if [ ! -f "${FLATPAK_DEST}/lib/libSDL2.so" ]; then + echo "${FLATPAK_DEST}/lib/libSDL2.so is missing, creating symlink" + ln -s "/lib/x86_64-linux-gnu/libSDL2-2.0.so.0" "${FLATPAK_DEST}/lib/libSDL2.so" + fi + sources: - type: dir path: .