Update apps.json

- reformat `apps.json` files
- use `sed` to add required prefixes for flatpak build
This commit is contained in:
ReenigneArcher 2022-10-26 14:53:27 -04:00
commit a043dfcf6c
No known key found for this signature in database
GPG key ID: 0CA6A47B0630EA9B
4 changed files with 47 additions and 34 deletions

View file

@ -200,3 +200,11 @@ modules:
url: '@GITHUB_CLONE_URL@'
branch: '@GITHUB_BRANCH@'
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