mirror of
https://github.com/RetroDECK/org.DolphinEmu.dolphin-emu.git
synced 2024-11-22 13:45:39 +00:00
Merge pull request #121 from ColinKinloch/auto_update_appdata
Support auto update release version metadata
This commit is contained in:
commit
d5d63c7fe7
|
@ -22,7 +22,7 @@
|
||||||
<id>dolphin-emu.desktop</id>
|
<id>dolphin-emu.desktop</id>
|
||||||
</provides>
|
</provides>
|
||||||
<releases>
|
<releases>
|
||||||
<release date="2022-07-06" version="5.0-16793"/>
|
<release version="5.0-16793" date="2022-07-06"/>
|
||||||
</releases>
|
</releases>
|
||||||
<url type="homepage">https://dolphin-emu.org</url>
|
<url type="homepage">https://dolphin-emu.org</url>
|
||||||
<url type="help">https://forums.dolphin-emu.org</url>
|
<url type="help">https://forums.dolphin-emu.org</url>
|
|
@ -6,7 +6,6 @@ sdk: org.kde.Sdk
|
||||||
command: dolphin-emu-wrapper
|
command: dolphin-emu-wrapper
|
||||||
rename-desktop-file: dolphin-emu.desktop
|
rename-desktop-file: dolphin-emu.desktop
|
||||||
rename-icon: dolphin-emu
|
rename-icon: dolphin-emu
|
||||||
rename-appdata-file: dolphin-emu.appdata.xml
|
|
||||||
finish-args:
|
finish-args:
|
||||||
- --device=all
|
- --device=all
|
||||||
# the file picker uses portals but the set
|
# the file picker uses portals but the set
|
||||||
|
@ -103,8 +102,8 @@ modules:
|
||||||
cleanup:
|
cleanup:
|
||||||
- /share/man
|
- /share/man
|
||||||
post-install:
|
post-install:
|
||||||
- install -D dolphin-emu-wrapper /app/bin/dolphin-emu-wrapper
|
- install -D -t ${FLATPAK_DEST}/bin/ dolphin-emu-wrapper
|
||||||
- install -Dm644 appdata.xml /app/share/appdata/dolphin-emu.appdata.xml
|
- 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
|
- 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'
|
- desktop-file-edit --set-key=Exec --set-value='/app/bin/dolphin-emu-wrapper'
|
||||||
/app/share/applications/dolphin-emu.desktop
|
/app/share/applications/dolphin-emu.desktop
|
||||||
|
@ -116,6 +115,7 @@ modules:
|
||||||
type: json
|
type: json
|
||||||
url: https://dolphin-emu.org/update/latest/beta
|
url: https://dolphin-emu.org/update/latest/beta
|
||||||
commit-query: .hash
|
commit-query: .hash
|
||||||
|
version-query: .shortrev
|
||||||
# detects whether dolphin is running in a flatpak sandbox
|
# detects whether dolphin is running in a flatpak sandbox
|
||||||
# and makes it use xdg directories if it is.
|
# and makes it use xdg directories if it is.
|
||||||
# prevents dolphin from attempting to write conf files
|
# prevents dolphin from attempting to write conf files
|
||||||
|
@ -127,18 +127,20 @@ modules:
|
||||||
- type: patch
|
- type: patch
|
||||||
path: nodirtyversion.patch
|
path: nodirtyversion.patch
|
||||||
- type: file
|
- type: file
|
||||||
path: appdata.xml
|
path: org.DolphinEmu.dolphin-emu.appdata.xml
|
||||||
- type: script
|
- type: script
|
||||||
commands:
|
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;
|
for i in {0..9}; do
|
||||||
- done
|
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
|
# use gtk3 filechooser on steamdeck
|
||||||
- bv=`cat /sys/devices/virtual/dmi/id/board_vendor`
|
bv=`cat /sys/devices/virtual/dmi/id/board_vendor`
|
||||||
- bv=$bv`cat /sys/devices/virtual/dmi/id/board_name`
|
bv=$bv`cat /sys/devices/virtual/dmi/id/board_name`
|
||||||
- if [[ $bv == "ValveJupiter" ]]; then
|
if [[ $bv == "ValveJupiter" ]]; then
|
||||||
- QT_QPA_PLATFORMTHEME=gtk3 dolphin-emu "$@"
|
QT_QPA_PLATFORMTHEME=gtk3 dolphin-emu "$@"
|
||||||
- else
|
else
|
||||||
- dolphin-emu "$@"
|
dolphin-emu "$@"
|
||||||
- fi
|
fi
|
||||||
dest-filename: dolphin-emu-wrapper
|
dest-filename: dolphin-emu-wrapper
|
||||||
|
|
Loading…
Reference in a new issue