Update org.ppsspp.PPSSPP.yml

This commit is contained in:
catsout 2022-10-16 14:01:15 +08:00 committed by GitHub
parent acd9d9ae82
commit 13f1e2fcb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,6 +49,8 @@ modules:
- desktop-file-edit --set-name=PPSSPP ${FLATPAK_DEST}/share/applications/PPSSPPSDL.desktop - desktop-file-edit --set-name=PPSSPP ${FLATPAK_DEST}/share/applications/PPSSPPSDL.desktop
- install -Dm644 icons/icon-512.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/ppsspp.svg - install -Dm644 icons/icon-512.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/ppsspp.svg
- install -Dm644 ${FLATPAK_ID}.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo - install -Dm644 ${FLATPAK_ID}.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo
# fix icon
- ln -s ../share/ppsspp/assets ${FLATPAK_DEST}/bin/assets
cleanup: cleanup:
- /share/ppsspp/assets/lang/README.md - /share/ppsspp/assets/lang/README.md
sources: sources:
@ -68,15 +70,14 @@ modules:
buildsystem: simple buildsystem: simple
build-commands: build-commands:
- | - |
for LANG_FILE in assets/lang/*.ini for LANG_FILE in assets/lang/*.ini; do
do LANG_FILE_BASENAME="$(basename "$LANG_FILE")" LANG_FILE_NAME="$(basename "$LANG_FILE")"
PPSSPP_LANG="$(grep -Eo '^[a-z]{2}' <<< "$LANG_FILE_BASENAME")" LANG_PREFIX="${LANG_FILE_NAME:0:2}"
ln -fsr "$FLATPAK_DEST/share/locale/$PPSSPP_LANG/ppsspp/$LANG_FILE_BASENAME" "$FLATPAK_DEST/share/ppsspp/$LANG_FILE" LANG_DEST="$FLATPAK_DEST/share/locale/$LANG_PREFIX/ppsspp/$LANG_FILE_NAME";
install -Dm644 "$LANG_FILE" "$FLATPAK_DEST/share/locale/$PPSSPP_LANG/ppsspp/$LANG_FILE_BASENAME" ln -fsr "$LANG_DEST" "$FLATPAK_DEST/share/ppsspp/$LANG_FILE"
install -Dm644 "$LANG_FILE" "$LANG_DEST"
done done
sources: sources:
- type: git - type: shell
url: *ppsspp-url commands:
tag: *ppsspp-tag - cp -a $FLATPAK_DEST/share/ppsspp/assets .
commit: *ppsspp-commit
disable-submodules: true