RemotePlay Cleanup (#1412)

* Universal shebang. Shellcheck stuff.

* Fix 'fiw' and misplaced quote
This commit is contained in:
AngelofWoe 2025-03-22 13:51:19 -04:00 committed by GitHub
parent 9f0a6b385a
commit 4134a20278
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 153 additions and 126 deletions

View File

@ -1,42 +1,45 @@
#!/bin/bash
#!/usr/bin/env bash
# remotePlayChiaki
# Variables
Chiaki_emuName="Chiaki"
Chiaki_emuType="$emuDeckEmuTypeFlatpak"
# shellcheck disable=2034,2154
Chiaki_emuType="${emuDeckEmuTypeFlatpak}"
Chiaki_emuPath="re.chiaki.Chiaki"
# shellcheck disable=2034
Chiaki_releaseURL=""
# Install
Chiaki_install() {
setMSG "Installing $Chiaki_emuName."
Chiaki_install () {
setMSG "Installing ${Chiaki_emuName}."
installEmuFP "${Chiaki_emuName}" "${Chiaki_emuPath}" "remoteplay" "Chiaki Remote Play Client"
}
# ApplyInitialSettings
Chiaki_init() {
setMSG "Initializing $Chiaki_emuName settings."
configEmuFP "$Chiaki_emuName" "$Chiaki_emuPath" "true"
Chiaki_init () {
setMSG "Initializing ${Chiaki_emuName} settings."
configEmuFP "${Chiaki_emuName}" "${Chiaki_emuPath}" "true"
#Chiaki_addSteamInputProfile
}
# Update flatpak & launcher script
Chiaki_update() {
setMSG "Updating $Chiaki_emuName settings."
Chiaki_update () {
setMSG "Updating ${Chiaki_emuName} settings."
updateEmuFP "${Chiaki_emuName}" "${Chiaki_emuPath}" "remoteplay" "Chiaki Remote Play Client"
}
# Uninstall
Chiaki_uninstall() {
setMSG "Uninstalling $Chiaki_emuName."
uninstallEmuFP "$Chiaki_emuName" "$Chiaki_emuPath" "remoteplay" "Chiaki Remote Play Client"
Chiaki_uninstall () {
setMSG "Uninstalling ${Chiaki_emuName}."
uninstallEmuFP "${Chiaki_emuName}" "${Chiaki_emuPath}" "remoteplay" "Chiaki Remote Play Client"
}
# Check if installed
Chiaki_IsInstalled() {
if [ "$(flatpak --columns=app list | grep "$Chiaki_emuPath")" == "$Chiaki_emuPath" ]; then
Chiaki_IsInstalled () {
if [ "$(flatpak --columns=app list | grep "${Chiaki_emuPath}")" == "${Chiaki_emuPath}" ]; then
# Uninstall if previously installed to the "system" level
flatpak list | grep "$Chiaki_emuPath" | grep "system"
if [ $? == 0 ]; then
if flatpak list | grep "${Chiaki_emuPath}" | grep "system"; then
Chiaki_uninstall
Chiaki_install
fi
@ -49,7 +52,7 @@ Chiaki_IsInstalled() {
}
# Import steam profile
Chiaki_addSteamInputProfile() {
Chiaki_addSteamInputProfile () {
echo "NYI"
#rsync -r "$emudeckBackend/configs/steam-input/emudeck_chiaki_controller_config.vdf" "$HOME/.steam/steam/controller_base/templates/"
}

View File

@ -1,46 +1,48 @@
#!/bin/bash
#!/usr/bin/env bash
# remotePlayChiaking
# Variables
Chiaking_emuName="chiaki-ng"
Chiaking_emuType="$emuDeckEmuTypeAppImage"
Chiaking_emuPath="$emusFolder/chiaki-ng.AppImage"
# shellcheck disable=2034,2154
Chiaking_emuType="${emuDeckEmuTypeAppImage}"
# shellcheck disable=2154
Chiaking_emuPath="${emusFolder}/chiaki-ng.AppImage"
# Install
Chiaking_install() {
setMSG "Installing $Chiaking_emuName."
# shellcheck disable=2120
Chiaking_install () {
setMSG "Installing ${Chiaking_emuName}."
local showProgress=$1
installEmuAI "$Chiaking_emuName" "$Chiaking_emuName" "$(getReleaseURLGH "streetpea/chiaki-ng" ".AppImage.zip")" "" "zip" "remoteplay" "$showProgress"
unzip -o "$emusFolder/chiaki-ng.zip" -d "$emusFolder" && rm -rf "$emusFolder/chiaki-ng.zip"
chmod +x $Chiaking_emuPath
local showProgress="${1}"
installEmuAI "${Chiaking_emuName}" "${Chiaking_emuName}" "$(getReleaseURLGH "streetpea/chiaki-ng" ".AppImage.zip")" "" "zip" "remoteplay" "${showProgress}"
unzip -o "${emusFolder}/chiaki-ng.zip" -d "${emusFolder}" && rm -rf "${emusFolder}/chiaki-ng.zip"
chmod +x "${Chiaking_emuPath}"
Chiaking_copySettings
}
# ApplyInitialSettings
Chiaking_init() {
Chiaking_init () {
echo "NYI"
}
# Update appimage
Chiaking_update() {
setMSG "Updating $Chiaking_emuName settings."
rm -f "$Chiaking_emuPath"
Chiaking_update () {
setMSG "Updating ${Chiaking_emuName} settings."
rm -f "${Chiaking_emuPath}"
Chiaking_install
Chiaking_copySettings
}
# Uninstall
Chiaking_uninstall() {
setMSG "Uninstalling $Chiaking_emuName."
uninstallEmuAI "$Chiaking_emuName" "" "" "remoteplay"
Chiaking_uninstall () {
setMSG "Uninstalling ${Chiaking_emuName}."
uninstallEmuAI "${Chiaking_emuName}" "" "" "remoteplay"
}
# Check if installed
Chiaking_IsInstalled() {
if [ -f "$Chiaking_emuPath" ]; then
Chiaking_IsInstalled () {
if [ -f "${Chiaking_emuPath}" ]; then
echo true
return 1
else
@ -49,10 +51,11 @@ Chiaking_IsInstalled() {
fi
}
Chiaking_copySettings(){
# Copy Settings from Flatpak
Chiaking_copySettings () {
# Copy settings from the Chiaki Flatpak if it exists and if there is not currently a settings file for the chiaki-ng AppImage
if [ -f "$HOME/.var/app/re.chiaki.Chiaki/config/Chiaki/Chiaki.conf" ]; then
rsync -av --ignore-existing "$HOME/.var/app/re.chiaki.Chiaki/config/Chiaki/Chiaki.conf" "$HOME/.config/Chiaki/Chiaki.conf"
if [ -f "${HOME}/.var/app/re.chiaki.Chiaki/config/Chiaki/Chiaki.conf" ]; then
rsync -av --ignore-existing "${HOME}/.var/app/re.chiaki.Chiaki/config/Chiaki/Chiaki.conf" "${HOME}/.config/Chiaki/Chiaki.conf"
fi
}

View File

@ -1,46 +1,50 @@
#!/bin/bash
#!/usr/bin/env bash
# remotePlayGreenlight
# Variables
Greenlight_emuName="Greenlight"
Greenlight_emuType="$emuDeckEmuTypeAppImage"
Greenlight_emuPath="$emusFolder/Greenlight.AppImage"
# shellcheck disable=2034,2154
Greenlight_emuType="${emuDeckEmuTypeAppImage}"
# shellcheck disable=2154
Greenlight_emuPath="${emusFolder}/Greenlight.AppImage"
# Install
Greenlight_install() {
# shellcheck disable=2120
Greenlight_install () {
echo "Begin Greenlight Install"
local showProgress="$1"
installEmuAI "$Greenlight_emuName" "" "$(getReleaseURLGH "unknownskl/greenlight" ".AppImage")" "" "" "remoteplay" "$showProgress"
local showProgress="${1}"
installEmuAI "${Greenlight_emuName}" "" "$( getReleaseURLGH "unknownskl/greenlight" ".AppImage" )" "" "" "remoteplay" "${showProgress}"
}
# ApplyInitialSettings
Greenlight_init() {
Greenlight_init () {
echo "NYI"
# setMSG "Initializing $Greenlight_emuName settings."
# configEmuFP "$Greenlight_emuName" "$Greenlight_emuPath" "true"
# setMSG "Initializing ${Greenlight_emuName} settings."
# configEmuFP "${Greenlight_emuName}" "${Greenlight_emuPath}" "true"
# $Greenlight_addSteamInputProfile
}
# Update appimage by reinstalling
Greenlight_update() {
setMSG "Updating $Greenlight_emuName."
rm -f "$Greenlight_emuPath"
Greenlight_update () {
setMSG "Updating ${Greenlight_emuName}."
rm -f "${Greenlight_emuPath}"
Greenlight_install
# configEmuAI "$Greenlight_emuName" "config" "$HOME/.config/greenlilght" "$emudeckBackend/configs/Greenlight/.config/greenlight"
# configEmuAI "${Greenlight_emuName}" "config" "$HOME/.config/greenlilght" "$emudeckBackend/configs/Greenlight/.config/greenlight"
# Greenlight_addSteamInputProfile
}
# Uninstall
Greenlight_uninstall() {
setMSG "Uninstalling $Greenlight_emuName."
uninstallEmuAI "$Greenlight_emuName" "" "" "remoteplay"
Greenlight_uninstall () {
setMSG "Uninstalling ${Greenlight_emuName}."
uninstallEmuAI "${Greenlight_emuName}" "" "" "remoteplay"
}
# Check if installed
Greenlight_IsInstalled() {
if [ -f "$Greenlight_emuPath" ]; then
Greenlight_IsInstalled () {
if [ -f "${Greenlight_emuPath}" ]; then
echo true
return 1
else
@ -50,7 +54,7 @@ Greenlight_IsInstalled() {
}
# Import steam profile
Greenlight_addSteamInputProfile() {
Greenlight_addSteamInputProfile () {
echo "NYI"
# rsync -r "$emudeckBackend/configs/steam-input/emudeck_Greenlight_controller_config.vdf" "$HOME/.steam/steam/controller_base/templates/"
}

View File

@ -1,41 +1,45 @@
#!/bin/bash
#!/usr/bin/env bash
# remotePlayMoonlight
# Variables
Moonlight_emuName="Moonlight"
Moonlight_emuType="$emuDeckEmuTypeFlatpak"
# shellcheck disable=2034,2154
Moonlight_emuType="${emuDeckEmuTypeFlatpak}"
Moonlight_emuPath="com.moonlight_stream.Moonlight"
# shellcheck disable=2034
Moonlight_releaseURL=""
# Install
Moonlight_install() {
setMSG "Installing $Moonlight_emuName."
Moonlight_install () {
setMSG "Installing ${Moonlight_emuName}."
installEmuFP "${Moonlight_emuName}" "${Moonlight_emuPath}" "remoteplay" "Moonlight Game Streaming"
}
# ApplyInitialSettings
Moonlight_init() {
setMSG "Initializing $Moonlight_emuName settings."
configEmuFP "$Moonlight_emuName" "$Moonlight_emuPath" "true"
Moonlight_init () {
setMSG "Initializing ${Moonlight_emuName} settings."
configEmuFP "${Moonlight_emuName}" "${Moonlight_emuPath}" "true"
#Moonlight_addSteamInputProfile
}
# Update flatpak & launcher script
Moonlight_update() {
setMSG "Updating $Moonlight_emuName settings."
Moonlight_update () {
setMSG "Updating ${Moonlight_emuName} settings."
updateEmuFP "${Moonlight_emuName}" "${Moonlight_emuPath}" "remoteplay" "Moonlight Game Streaming"
}
# Uninstall
Moonlight_uninstall() {
setMSG "Uninstalling $Moonlight_emuName."
uninstallEmuFP "$Moonlight_emuName" "$Moonlight_emuPath" "remoteplay" "Moonlight Game Streaming"
Moonlight_uninstall () {
setMSG "Uninstalling ${Moonlight_emuName}."
uninstallEmuFP "${Moonlight_emuName}" "${Moonlight_emuPath}" "remoteplay" "Moonlight Game Streaming"
}
# Check if installed
Moonlight_IsInstalled() {
if [ "$(flatpak --columns=app list | grep "$Moonlight_emuPath")" == "$Moonlight_emuPath" ]; then
Moonlight_IsInstalled () {
if [ "$(flatpak --columns=app list | grep "${Moonlight_emuPath}")" == "${Moonlight_emuPath}" ]; then
# Uninstall if previously installed to the "system" level
flatpak list | grep "$Moonlight_emuPath" | grep "system"
flatpak list | grep "${Moonlight_emuPath}" | grep "system"
if [ $? == 0 ]; then
Moonlight_uninstall
Moonlight_install
@ -49,7 +53,7 @@ Moonlight_IsInstalled() {
}
# Import steam profile
Moonlight_addSteamInputProfile() {
Moonlight_addSteamInputProfile () {
echo "NYI"
#rsync -r "$emudeckBackend/configs/steam-input/emudeck_moonlight_controller_config.vdf" "$HOME/.steam/steam/controller_base/templates/"
}

View File

@ -1,41 +1,45 @@
#!/bin/bash
#!/usr/bin/env bash
# remotePlayParsec
# Variables
Parsec_emuName="Parsec"
Parsec_emuType="$emuDeckEmuTypeFlatpak"
# shellcheck disable=2034,2154
Parsec_emuType="${emuDeckEmuTypeFlatpak}"
Parsec_emuPath="com.parsecgaming.parsec"
# shellcheck disable=2034
Parsec_releaseURL=""
# Install
Parsec_install() {
setMSG "Installing $Parsec_emuName."
Parsec_install () {
setMSG "Installing ${Parsec_emuName}."
installEmuFP "${Parsec_emuName}" "${Parsec_emuPath}" "remoteplay" ""
}
# ApplyInitialSettings
Parsec_init() {
setMSG "Initializing $Parsec_emuName settings."
configEmuFP "$Parsec_emuName" "$Parsec_emuPath" "true"
Parsec_init () {
setMSG "Initializing ${Parsec_emuName} settings."
configEmuFP "${Parsec_emuName}" "${Parsec_emuPath}" "true"
#Parsec_addSteamInputProfile
}
# Update flatpak & launcher script
Parsec_update() {
setMSG "Updating $Parsec_emuName settings."
Parsec_update () {
setMSG "Updating ${Parsec_emuName} settings."
updateEmuFP "${Parsec_emuName}" "${Parsec_emuPath}" "remoteplay" ""
}
# Uninstall
Parsec_uninstall() {
setMSG "Uninstalling $Parsec_emuName."
uninstallEmuFP "$Parsec_emuName" "$Parsec_emuPath" "remoteplay" ""
Parsec_uninstall () {
setMSG "Uninstalling ${Parsec_emuName}."
uninstallEmuFP "${Parsec_emuName}" "${Parsec_emuPath}" "remoteplay" ""
}
# Check if installed
Parsec_IsInstalled() {
if [ "$(flatpak --columns=app list | grep "$Parsec_emuPath")" == "$Parsec_emuPath" ]; then
Parsec_IsInstalled () {
if [ "$(flatpak --columns=app list | grep "${Parsec_emuPath}")" == "${Parsec_emuPath}" ]; then
# Uninstall if previously installed to the "system" level
flatpak list | grep "$Parsec_emuPath" | grep "system"
flatpak list | grep "${Parsec_emuPath}" | grep "system"
if [ $? == 0 ]; then
Parsec_uninstall
Parsec_install
@ -49,7 +53,7 @@ Parsec_IsInstalled() {
}
# Import steam profile
Parsec_addSteamInputProfile() {
Parsec_addSteamInputProfile () {
echo "NYI"
#rsync -r "$emudeckBackend/configs/steam-input/emudeck_parsec_controller_config.vdf" "$HOME/.steam/steam/controller_base/templates/"
}

View File

@ -1,43 +1,48 @@
#!/bin/bash
#!/usr/bin/env bash
# remotePlayShadow
# Variables
ShadowPC_emuName="ShadowPC"
ShadowPC_emuType="$emuDeckEmuTypeAppImage"
ShadowPC_emuPath="$emusFolder/ShadowPC.AppImage"
# shellcheck disable=2034,2154
ShadowPC_emuType="${emuDeckEmuTypeAppImage}"
# shellcheck disable=2154
ShadowPC_emuPath="${emusFolder}/ShadowPC.AppImage"
ShadowPC_releaseURL="https://update.Shadow.tech/launcher/prod/linux/ubuntu_18.04/ShadowPC.AppImage"
# Install
ShadowPC_install() {
setMSG "Installing $ShadowPC_emuName."
# shellcheck disable=2120
ShadowPC_install () {
setMSG "Installing ${ShadowPC_emuName}."
local showProgress=$1
#local installShadowPC=$(wget -q $ShadowPC_releaseURL -P $ShadowPC_emuPath)
installEmuAI "$ShadowPC_emuName" "" $ShadowPC_releaseURL "" "" "remoteplay" "$showProgress"
#local installShadowPC=$(wget -q "${ShadowPC_releaseURL}" -P ${ShadowPC_emuPath})
installEmuAI "${ShadowPC_emuName}" "" "${ShadowPC_releaseURL}" "" "" "remoteplay" "${showProgress}"
}
# ApplyInitialSettings
ShadowPC_init() {
ShadowPC_init () {
echo "NYI"
#setMSG "Initializing $ShadowPC_emuName settings."
#setMSG "Initializing ${ShadowPC_emuName} settings."
#$ShadowPC_addSteamInputProfile
}
# Update appimage
ShadowPC_update() {
setMSG "Updating $ShadowPC_emuName settings."
rm -f "$ShadowPC_emuPath"
ShadowPC_update () {
setMSG "Updating ${ShadowPC_emuName} settings."
rm -f "${ShadowPC_emuPath}"
ShadowPC_install
}
# Uninstall
ShadowPC_uninstall() {
setMSG "Uninstalling $ShadowPC_emuName."
uninstallEmuAI "$ShadowPC_emuName" "" "" "remoteplay"
ShadowPC_uninstall () {
setMSG "Uninstalling ${ShadowPC_emuName}."
uninstallEmuAI "${ShadowPC_emuName}" "" "" "remoteplay"
}
# Check if installed
ShadowPC_IsInstalled() {
if [ -f "$ShadowPC_emuPath" ]; then
ShadowPC_IsInstalled () {
if [ -f "${ShadowPC_emuPath}" ]; then
echo true
return 1
else
@ -47,7 +52,7 @@ ShadowPC_IsInstalled() {
}
# Import steam profile
ShadowPC_addSteamInputProfile() {
ShadowPC_addSteamInputProfile () {
echo "NYI"
#rsync -r "$emudeckBackend/configs/steam-input/emudeck_ShadowPC_controller_config.vdf" "$HOME/.steam/steam/controller_base/templates/"
}

View File

@ -1,39 +1,43 @@
#!/bin/bash
#!/usr/bin/env bash
# remotePlaySreamLink
# Variables
SteamLink_emuName="SteamLink"
SteamLink_emuType="$emuDeckEmuTypeFlatpak"
# shellcheck disable=2034,2154
SteamLink_emuType="${emuDeckEmuTypeFlatpak}"
SteamLink_emuPath="com.valvesoftware.SteamLink"
# shellcheck disable=2034
SteamLink_releaseURL=""
# Install
SteamLink_install() {
setMSG "Installing $SteamLink_emuName."
SteamLink_install () {
setMSG "Installing ${SteamLink_emuName}."
installEmuFP "${SteamLink_emuName}" "${SteamLink_emuPath}" "remoteplay" ""
}
# ApplyInitialSettings
SteamLink_init() {
setMSG "Initializing $SteamLink_emuName settings."
configEmuFP "$SteamLink_emuName" "$SteamLink_emuPath" "true"
SteamLink_init () {
setMSG "Initializing ${SteamLink_emuName} settings."
configEmuFP "${SteamLink_emuName}" "${SteamLink_emuPath}" "true"
#SteamLink_addSteamInputProfile
}
# Update flatpak & launcher script
SteamLink_update() {
setMSG "Updating $SteamLink_emuName settings."
SteamLink_update () {
setMSG "Updating ${SteamLink_emuName} settings."
updateEmuFP "${SteamLink_emuName}" "${SteamLink_emuPath}" "remoteplay" ""
}
# Uninstall
SteamLink_uninstall() {
setMSG "Uninstalling $SteamLink_emuName."
uninstallEmuFP "$SteamLink_emuName" "$SteamLink_emuPath" "remoteplay" ""
SteamLink_uninstall () {
setMSG "Uninstalling ${SteamLink_emuName}."
uninstallEmuFP "${SteamLink_emuName}" "${SteamLink_emuPath}" "remoteplay" ""
}
# Check if installed
SteamLink_IsInstalled() {
if [ "$(flatpak --columns=app list | grep "$SteamLink_emuPath")" == "$SteamLink_emuPath" ]; then
SteamLink_IsInstalled () {
if [ "$(flatpak --columns=app list | grep "${SteamLink_emuPath}")" == "${SteamLink_emuPath}" ]; then
echo true
return 1
else
@ -43,7 +47,7 @@ SteamLink_IsInstalled() {
}
# Import steam profile
SteamLink_addSteamInputProfile() {
SteamLink_addSteamInputProfile () {
echo "NYI"
#rsync -r "$emudeckBackend/configs/steam-input/emudeck_steamlink_controller_config.vdf" "$HOME/.steam/steam/controller_base/templates/"
}