mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-06 21:00:21 +01:00
Flatpak: Move wrapper script outside of the manifest
This commit is contained in:
parent
4b4a58623b
commit
a34f81ff34
2 changed files with 9 additions and 10 deletions
8
Flatpak/dolphin-emu-wrapper
Executable file
8
Flatpak/dolphin-emu-wrapper
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# https://github.com/flathub/com.discordapp.Discord/wiki/Rich-Precense-(discord-rpc)#flatpak-applications
|
||||||
|
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
|
||||||
|
|
||||||
|
dolphin-emu "$@"
|
|
@ -62,19 +62,10 @@ modules:
|
||||||
cleanup:
|
cleanup:
|
||||||
- /share/man
|
- /share/man
|
||||||
post-install:
|
post-install:
|
||||||
- install -D -t ${FLATPAK_DEST}/bin/ ../dolphin-emu-wrapper
|
- install -Dm755 -t ${FLATPAK_DEST}/bin/ ../Flatpak/dolphin-emu-wrapper
|
||||||
- install -Dm644 -t ${FLATPAK_DEST}/share/metainfo/ Flatpak/org.DolphinEmu.dolphin-emu.metainfo.xml
|
- install -Dm644 -t ${FLATPAK_DEST}/share/metainfo/ Flatpak/org.DolphinEmu.dolphin-emu.metainfo.xml
|
||||||
- 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
|
||||||
sources:
|
sources:
|
||||||
- type: dir
|
- type: dir
|
||||||
path: ..
|
path: ..
|
||||||
- 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
|
|
||||||
dolphin-emu "$@"
|
|
||||||
dest-filename: dolphin-emu-wrapper
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue