Update apps.json
- reformat `apps.json` files - use `sed` to add required prefixes for flatpak build
This commit is contained in:
parent
894cb6507e
commit
a043dfcf6c
4 changed files with 47 additions and 34 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue