Merge pull request #70 from flathub/locale

remove locale extension
This commit is contained in:
catsout 2023-12-24 19:42:56 +08:00 committed by GitHub
commit 4250127357
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,6 @@ app-id: org.ppsspp.PPSSPP
runtime: org.freedesktop.Platform runtime: org.freedesktop.Platform
runtime-version: '23.08' runtime-version: '23.08'
sdk: org.freedesktop.Sdk sdk: org.freedesktop.Sdk
separate-locales: false
rename-icon: ppsspp rename-icon: ppsspp
rename-desktop-file: PPSSPPSDL.desktop rename-desktop-file: PPSSPPSDL.desktop
command: PPSSPPSDL command: PPSSPPSDL
@ -17,14 +16,6 @@ finish-args:
- --talk-name=org.freedesktop.ScreenSaver - --talk-name=org.freedesktop.ScreenSaver
- --env=SDL_VIDEO_X11_WMCLASS=org.ppsspp.PPSSPP - --env=SDL_VIDEO_X11_WMCLASS=org.ppsspp.PPSSPP
- --env=SDL_VIDEO_WAYLAND_WMCLASS=org.ppsspp.PPSSPP - --env=SDL_VIDEO_WAYLAND_WMCLASS=org.ppsspp.PPSSPP
add-extensions:
org.ppsspp.PPSSPP.Locale:
directory: share/locale
bundle: true
no-autodownload: false
subdirectories: false
autodelete: true
locale-subset: true
modules: modules:
- shared-modules/glu/glu-9.json - shared-modules/glu/glu-9.json
- shared-modules/glew/glew.json - shared-modules/glew/glew.json
@ -67,19 +58,3 @@ modules:
- type: file - type: file
path: org.ppsspp.PPSSPP.metainfo.xml path: org.ppsspp.PPSSPP.metainfo.xml
- name: ppsspp-localization
buildsystem: simple
build-commands:
- |
for LANG_FILE in assets/lang/*.ini; do
LANG_FILE_NAME="$(basename "$LANG_FILE")"
LANG_PREFIX="${LANG_FILE_NAME:0:2}"
LANG_DEST="$FLATPAK_DEST/share/locale/$LANG_PREFIX/ppsspp/$LANG_FILE_NAME";
ln -fsr "$LANG_DEST" "$FLATPAK_DEST/share/ppsspp/$LANG_FILE"
install -Dm644 "$LANG_FILE" "$LANG_DEST"
done
sources:
- type: shell
commands:
- cp -a $FLATPAK_DEST/share/ppsspp/assets .