EmuDeck/functions/installEmuFP.sh
KingIzzymon af9e5a4104
Added remote play clients (#622)
* Added remote play clients

- Fixed bug that deleted cloud scripts when pressing "cancel"
- Updated cloud scripts to reflect changes
- Added steam controller template "EmuDeck - Cloud"
- Updated readme

Note: beta testers will need to delete their cloud.conf, run the cloudServicesManager and update their cloud services.

* Minor fixes

* Added remote play clients

- Fixed bug that deleted cloud scripts when pressing "cancel"
- Updated cloud scripts to reflect changes
- Added steam controller template "EmuDeck - Cloud"
- Updated readme

Note: beta testers will need to delete their cloud.conf, run the cloudServicesManager and update their cloud services.
2023-02-11 03:51:54 -05:00

20 lines
765 B
Bash

#!/bin/bash
installEmuFP(){
local name="$1"
local ID="$2"
setMSG "Installing $name"
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo --user
flatpak install flathub "$ID" -y --system
flatpak override "$ID" --filesystem=host --user
flatpak override "$ID" --share=network --user
shName=$(echo "$name" | awk '{print tolower($0)}')
find "${toolsPath}/launchers/" -type f -iname "$shName.sh" -o -type f -iname "$shName-emu.sh" | while read -r f; do echo "deleting old: $f"; rm -f "$f"; done;
find "${EMUDECKGIT}/tools/launchers/" -type f -iname "$shName.sh" -o -type f -iname "$shName-emu.sh" | while read -r l; do echo "deploying new: $l"; chmod +x "$l"; cp -v "$l" "${toolsPath}/launchers/"; done;
}