mirror of
https://github.com/dragoonDorise/EmuDeck.git
synced 2025-05-06 00:12:49 +00:00
* Updated installEmuAI and installEmuFP to be more dynamic * Allows for selecting if the application is an "emulator", "remoteplay", or "genericapplication" * Based off the choice, copies the respective bash file to the correct location * Allows for selecting file format of the downloaded AppImage (in case it's compressed and needs to be extracted) * Updated relevant scripts to match new changes * Cleaned up formatting of these two scripts * Cleaned up remoteplay Flatpak scripts to match new changes (allows for easier maintenance) * With these changes, remoteplay and generic application AppImages will now have a desktop file created * Added relevant desktop icons * Added generic applications to cloud services manager * Added Cider, Heroic Games Launcher, Plexamp, Spotify, and Tidal * Moved Spotify here from remoteplay scripts * Added chiaki4deck to remote play scripts * Added copying configs from Chiaki to chiaki4deck (if one does not exist already) * Added uninstall option if bash scripts are detected in the remoteplay or generic-applications folder * If user installed these applications independent of EmuDeck, these folders would be empty and therefore can be skipped in the uninstallation * Updated emulator, remoteplay, and generic-application scripts to rely more heavily on installEmuAI, installEmuFP, uninstallEmuFP, uninstallEmuAI, and uninstallGeneric * This should ideally improve maintenance in the future and allow for easier contribution * Updated emulator scripts to remove redunant/outdated code * Added emulator folder for ES-DE and Pegasus (official support was added to ES-DE) * Added copying emulator scripts to the emulator folder and removing when uninstalled * Updated binupdate and flatpakupdate to be in alphabetical order/tidied these scripts
56 lines
1.3 KiB
Bash
56 lines
1.3 KiB
Bash
#!/bin/bash
|
|
|
|
# Variables
|
|
Parsec_emuName="Parsec"
|
|
Parsec_emuType="$emuDeckEmuTypeFlatpak"
|
|
Parsec_emuPath="com.parsecgaming.parsec"
|
|
Parsec_releaseURL=""
|
|
|
|
# Install
|
|
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_addSteamInputProfile
|
|
}
|
|
|
|
# Update flatpak & launcher script
|
|
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" ""
|
|
}
|
|
|
|
# Check if installed
|
|
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"
|
|
if [ $? == 0 ]; then
|
|
Parsec_uninstall
|
|
Parsec_install
|
|
fi
|
|
echo true
|
|
return 1
|
|
else
|
|
echo false
|
|
return 0
|
|
fi
|
|
}
|
|
|
|
# Import steam profile
|
|
Parsec_addSteamInputProfile() {
|
|
echo "NYI"
|
|
#rsync -r "$EMUDECKGIT/configs/steam-input/emudeck_parsec_controller_config.vdf" "$HOME/.steam/steam/controller_base/templates/"
|
|
}
|