Support auto update release version metadata

This commit is contained in:
Colin Kinloch 2022-07-19 16:01:21 +01:00
parent 4403e62df0
commit 9ce8d31a48
2 changed files with 19 additions and 17 deletions

View file

@ -22,7 +22,7 @@
<id>dolphin-emu.desktop</id>
</provides>
<releases>
<release date="2022-07-06" version="5.0-16793"/>
<release version="5.0-16793" date="2022-07-06"/>
</releases>
<url type="homepage">https://dolphin-emu.org</url>
<url type="help">https://forums.dolphin-emu.org</url>

View file

@ -6,7 +6,6 @@ sdk: org.kde.Sdk
command: dolphin-emu-wrapper
rename-desktop-file: dolphin-emu.desktop
rename-icon: dolphin-emu
rename-appdata-file: dolphin-emu.appdata.xml
finish-args:
- --device=all
# the file picker uses portals but the set
@ -103,8 +102,8 @@ modules:
cleanup:
- /share/man
post-install:
- install -D dolphin-emu-wrapper /app/bin/dolphin-emu-wrapper
- install -Dm644 appdata.xml /app/share/appdata/dolphin-emu.appdata.xml
- install -D -t ${FLATPAK_DEST}/bin/ dolphin-emu-wrapper
- install -Dm644 -t ${FLATPAK_DEST}/share/appdata/ org.DolphinEmu.dolphin-emu.appdata.xml
- sed -i -e 's/"2048"/"512"/g' /app/share/icons/hicolor/scalable/apps/dolphin-emu.svg
- desktop-file-edit --set-key=Exec --set-value='/app/bin/dolphin-emu-wrapper'
/app/share/applications/dolphin-emu.desktop
@ -116,6 +115,7 @@ modules:
type: json
url: https://dolphin-emu.org/update/latest/beta
commit-query: .hash
version-query: .shortrev
# detects whether dolphin is running in a flatpak sandbox
# and makes it use xdg directories if it is.
# prevents dolphin from attempting to write conf files
@ -127,18 +127,20 @@ modules:
- type: patch
path: nodirtyversion.patch
- type: file
path: appdata.xml
path: org.DolphinEmu.dolphin-emu.appdata.xml
- type: script
commands:
- for i in {0..9}; do
- test -S $XDG_RUNTIME_DIR/discord-ipc-$i || ln -sf {app/com.discordapp.Discord,$XDG_RUNTIME_DIR}/discord-ipc-$i;
- done
- |
for i in {0..9}; do
test -S $XDG_RUNTIME_DIR/discord-ipc-$i ||
ln -sf {app/com.discordapp.Discord,$XDG_RUNTIME_DIR}/discord-ipc-$i;
done
# use gtk3 filechooser on steamdeck
- bv=`cat /sys/devices/virtual/dmi/id/board_vendor`
- bv=$bv`cat /sys/devices/virtual/dmi/id/board_name`
- if [[ $bv == "ValveJupiter" ]]; then
- QT_QPA_PLATFORMTHEME=gtk3 dolphin-emu "$@"
- else
- dolphin-emu "$@"
- fi
bv=`cat /sys/devices/virtual/dmi/id/board_vendor`
bv=$bv`cat /sys/devices/virtual/dmi/id/board_name`
if [[ $bv == "ValveJupiter" ]]; then
QT_QPA_PLATFORMTHEME=gtk3 dolphin-emu "$@"
else
dolphin-emu "$@"
fi
dest-filename: dolphin-emu-wrapper