Pancakes: fixed wrapper

This commit is contained in:
XargonWan 2025-01-11 11:55:04 +09:00
parent 57bca281dc
commit b5bed5f982

View file

@ -600,7 +600,7 @@ modules:
- mv R*x* "${FLATPAK_DEST}/bin/" - mv R*x* "${FLATPAK_DEST}/bin/"
# This line inserts the command to export the LD_LIBRARY_PATH environment variable at the beginning of the specified file. # This line inserts the command to export the LD_LIBRARY_PATH environment variable at the beginning of the specified file.
# It ensures that the /app/bin directory is included in the library search path for the executable files matching the pattern R*x*.sh. # It ensures that the /app/bin directory is included in the library search path for the executable files matching the pattern R*x*.sh.
- sed -i '1 a export LD_LIBRARY_PATH=/app/bin:$LD_LIBRARY_PATH' "${FLATPAK_DEST}/bin/"R*x*.sh - sed -i 's|#!/bin/bash|#!/bin/bash\nexport LD_LIBRARY_PATH=/app/bin:$LD_LIBRARY_PATH|' "${FLATPAK_DEST}/bin/"R*x*.sh
- chmod +x "${FLATPAK_DEST}/bin/"R*x* - chmod +x "${FLATPAK_DEST}/bin/"R*x*
# Step 4: Set up license directory and move license files # Step 4: Set up license directory and move license files
- mkdir -p "${FLATPAK_DEST}/retrodeck/licenses" - mkdir -p "${FLATPAK_DEST}/retrodeck/licenses"