Merge pull request #432 from LizardByte/update/flatpak-apps-config-file
update apps.json
This commit is contained in:
commit
dc491fa5d4
4 changed files with 47 additions and 34 deletions
|
|
@ -200,3 +200,11 @@ modules:
|
||||||
url: '@GITHUB_CLONE_URL@'
|
url: '@GITHUB_CLONE_URL@'
|
||||||
branch: '@GITHUB_BRANCH@'
|
branch: '@GITHUB_BRANCH@'
|
||||||
commit: '@GITHUB_COMMIT@'
|
commit: '@GITHUB_COMMIT@'
|
||||||
|
post-install:
|
||||||
|
# use `sed` to update apps.json with prefixes required for flatpak
|
||||||
|
# -r (regex)
|
||||||
|
# -z (handle new lines) https://linuxhint.com/sed-replace-newline-with-space
|
||||||
|
# `/gm` global and multiline
|
||||||
|
- sed -r -z -i -e
|
||||||
|
's/("((do)|(undo)|(cmd)|(detached))"\s*:\s*\[?\n*\s*")(.*")/\1flatpak-spawn --host \7/gm'
|
||||||
|
/app/share/sunshine/apps.json
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,24 @@
|
||||||
{
|
{
|
||||||
"env":{
|
"env": {
|
||||||
"PATH":"$(PATH):$(HOME)/.local/bin"
|
"PATH": "$(PATH):$(HOME)/.local/bin"
|
||||||
},
|
},
|
||||||
"apps":[
|
"apps": [
|
||||||
{
|
{
|
||||||
"name":"Low Res Desktop",
|
"name": "Low Res Desktop",
|
||||||
"prep-cmd":[
|
"prep-cmd": [
|
||||||
{ "do":"xrandr --output HDMI-1 --mode 1920x1080", "undo":"xrandr --output HDMI-1 --mode 1920x1200" }
|
{
|
||||||
]
|
"do": "xrandr --output HDMI-1 --mode 1920x1080",
|
||||||
},
|
"undo": "xrandr --output HDMI-1 --mode 1920x1200"
|
||||||
{
|
}
|
||||||
"name":"Steam BigPicture",
|
]
|
||||||
|
},
|
||||||
"output":"steam.txt",
|
{
|
||||||
"detached":["setsid steam steam://open/bigpicture"],
|
"name": "Steam BigPicture",
|
||||||
"image-path":"steam.png"
|
"output": "steam.txt",
|
||||||
}
|
"detached": [
|
||||||
]
|
"setsid steam steam://open/bigpicture"
|
||||||
|
],
|
||||||
|
"image-path": "steam.png"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"env":{
|
"env": {
|
||||||
"PATH":"$(PATH):$(HOME)/.local/bin"
|
"PATH": "$(PATH):$(HOME)/.local/bin"
|
||||||
},
|
},
|
||||||
"apps":[ ]
|
"apps": []
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,15 @@
|
||||||
{
|
{
|
||||||
"env":{
|
"env": {
|
||||||
"PATH":"$(PATH);C:\\Program Files (x86)\\Steam"
|
"PATH": "$(PATH);C:\\Program Files (x86)\\Steam"
|
||||||
},
|
},
|
||||||
"apps":[
|
"apps": [
|
||||||
{
|
{
|
||||||
"name":"Steam BigPicture",
|
"name": "Steam BigPicture",
|
||||||
|
"output": "steam.txt",
|
||||||
"output":"steam.txt",
|
"detached": [
|
||||||
"detached":["steam steam://open/bigpicture"],
|
"steam steam://open/bigpicture"
|
||||||
"image-path":"steam.png"
|
],
|
||||||
}
|
"image-path": "steam.png"
|
||||||
]
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue