mirror of
https://github.com/dragoonDorise/EmuDeck.git
synced 2025-05-05 16:02:48 +00:00
Universal shebang. Some very small shellcheck updates. (#1411)
This commit is contained in:
parent
4134a20278
commit
a1455a2335
@ -1,38 +1,42 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# genericApplicationBottles
|
||||
|
||||
# Variables
|
||||
Bottles_emuName="Bottles"
|
||||
Bottles_emuType="$emuDeckEmuTypeFlatpak"
|
||||
# shellcheck disable=2034,2154
|
||||
Bottles_emuType="${emuDeckEmuTypeFlatpak}"
|
||||
Bottles_emuPath="com.usebottles.bottles"
|
||||
# shellcheck disable=2034
|
||||
Bottles_releaseURL=""
|
||||
|
||||
# Install
|
||||
Bottles_install() {
|
||||
setMSG "Installing $Bottles_emuName."
|
||||
Bottles_install () {
|
||||
setMSG "Installing ${Bottles_emuName}."
|
||||
installEmuFP "${Bottles_emuName}" "${Bottles_emuPath}" "genericapplication" ""
|
||||
}
|
||||
|
||||
# ApplyInitialSettings
|
||||
Bottles_init() {
|
||||
setMSG "Initializing $Bottles_emuName settings."
|
||||
configEmuFP "$Bottles_emuName" "$Bottles_emuPath" "true"
|
||||
Bottles_init () {
|
||||
setMSG "Initializing ${Bottles_emuName} settings."
|
||||
configEmuFP "${Bottles_emuName}" "${Bottles_emuPath}" "true"
|
||||
}
|
||||
|
||||
# Update flatpak & launcher script
|
||||
Bottles_update() {
|
||||
setMSG "Updating $Bottles_emuName settings."
|
||||
Bottles_update () {
|
||||
setMSG "Updating ${Bottles_emuName} settings."
|
||||
updateEmuFP "${Bottles_emuName}" "${Bottles_emuPath}" "genericapplication" ""
|
||||
}
|
||||
|
||||
# Uninstall
|
||||
Bottles_uninstall() {
|
||||
setMSG "Uninstalling $Bottles_emuName."
|
||||
uninstallEmuFP "$Bottles_emuName" "$Bottles_emuPath" "genericapplication" ""
|
||||
Bottles_uninstall () {
|
||||
setMSG "Uninstalling ${Bottles_emuName}."
|
||||
uninstallEmuFP "${Bottles_emuName}" "${Bottles_emuPath}" "genericapplication" ""
|
||||
}
|
||||
|
||||
# Check if installed
|
||||
Bottles_IsInstalled() {
|
||||
if [ "$(flatpak --columns=app list | grep "$Bottles_emuPath")" == "$Bottles_emuPath" ]; then
|
||||
Bottles_IsInstalled () {
|
||||
if [ "$(flatpak --columns=app list | grep "${Bottles_emuPath}")" == "${Bottles_emuPath}" ]; then
|
||||
echo true
|
||||
return 1
|
||||
else
|
||||
@ -42,6 +46,6 @@ Bottles_IsInstalled() {
|
||||
}
|
||||
|
||||
# Import steam profile
|
||||
Bottles_addSteamInputProfile() {
|
||||
Bottles_addSteamInputProfile () {
|
||||
echo "NYI"
|
||||
}
|
||||
|
@ -1,37 +1,40 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# genericApplicationCider
|
||||
|
||||
# Variables
|
||||
Cider_emuName="Cider"
|
||||
Cider_emuType="$emuDeckEmuTypeFlatpak"
|
||||
# shellcheck disable=2034,2154
|
||||
Cider_emuType="${emuDeckEmuTypeFlatpak}"
|
||||
Cider_emuPath="sh.cider.Cider"
|
||||
|
||||
# Install
|
||||
Cider_install() {
|
||||
setMSG "Installing $Cider_emuName."
|
||||
Cider_install () {
|
||||
setMSG "Installing ${Cider_emuName}."
|
||||
installEmuFP "${Cider_emuName}" "${Cider_emuPath}" "genericapplication" ""
|
||||
}
|
||||
|
||||
# ApplyInitialSettings
|
||||
Cider_init() {
|
||||
setMSG "Initializing $Cider_emuName settings."
|
||||
configEmuFP "$Cider_emuName" "$Cider_emuPath" "true"
|
||||
Cider_init () {
|
||||
setMSG "Initializing ${Cider_emuName} settings."
|
||||
configEmuFP "${Cider_emuName}" "${Cider_emuPath}" "true"
|
||||
}
|
||||
|
||||
# Update flatpak & launcher script
|
||||
Cider_update() {
|
||||
setMSG "Updating $Cider_emuName settings."
|
||||
Cider_update () {
|
||||
setMSG "Updating ${Cider_emuName} settings."
|
||||
updateEmuFP "${Cider_emuName}" "${Cider_emuPath}" "genericapplication" ""
|
||||
}
|
||||
|
||||
# Uninstall
|
||||
Cider_uninstall() {
|
||||
setMSG "Uninstalling $Cider_emuName."
|
||||
uninstallEmuFP "$Cider_emuName" "$Cider_emuPath" "genericapplication" ""
|
||||
Cider_uninstall () {
|
||||
setMSG "Uninstalling ${Cider_emuName}."
|
||||
uninstallEmuFP "${Cider_emuName}" "${Cider_emuPath}" "genericapplication" ""
|
||||
}
|
||||
|
||||
# Check if installed
|
||||
Cider_IsInstalled() {
|
||||
if [ "$(flatpak --columns=app list | grep "$Cider_emuPath")" == "$Cider_emuPath" ]; then
|
||||
Cider_IsInstalled () {
|
||||
if [ "$(flatpak --columns=app list | grep "${Cider_emuPath}")" == "${Cider_emuPath}" ]; then
|
||||
echo true
|
||||
return 1
|
||||
else
|
||||
@ -41,7 +44,7 @@ Cider_IsInstalled() {
|
||||
}
|
||||
|
||||
# Import steam profile
|
||||
Cider_addSteamInputProfile() {
|
||||
Cider_addSteamInputProfile () {
|
||||
echo "NYI"
|
||||
#rsync -r "$emudeckBackend/configs/steam-input/emudeck_Cider_controller_config.vdf" "$HOME/.steam/steam/controller_base/templates/"
|
||||
}
|
||||
|
@ -1,38 +1,42 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# genericApplicationFlatseal
|
||||
|
||||
# Variables
|
||||
Flatseal_emuName="Flatseal"
|
||||
Flatseal_emuType="$emuDeckEmuTypeFlatpak"
|
||||
# shellcheck disable=2034,2154
|
||||
Flatseal_emuType="${emuDeckEmuTypeFlatpak}"
|
||||
Flatseal_emuPath="com.github.tchx84.Flatseal"
|
||||
# shellcheck disable=2034
|
||||
Flatseal_releaseURL=""
|
||||
|
||||
# Install
|
||||
Flatseal_install() {
|
||||
setMSG "Installing $Flatseal_emuName."
|
||||
Flatseal_install () {
|
||||
setMSG "Installing ${Flatseal_emuName}."
|
||||
installEmuFP "${Flatseal_emuName}" "${Flatseal_emuPath}" "genericapplication" ""
|
||||
}
|
||||
|
||||
# ApplyInitialSettings
|
||||
Flatseal_init() {
|
||||
setMSG "Initializing $Flatseal_emuName settings."
|
||||
configEmuFP "$Flatseal_emuName" "$Flatseal_emuPath" "true"
|
||||
Flatseal_init () {
|
||||
setMSG "Initializing ${Flatseal_emuName} settings."
|
||||
configEmuFP "${Flatseal_emuName}" "${Flatseal_emuPath}" "true"
|
||||
}
|
||||
|
||||
# Update flatpak & launcher script
|
||||
Flatseal_update() {
|
||||
setMSG "Updating $Flatseal_emuName settings."
|
||||
Flatseal_update () {
|
||||
setMSG "Updating ${Flatseal_emuName} settings."
|
||||
updateEmuFP "${Flatseal_emuName}" "${Flatseal_emuPath}" "genericapplication" ""
|
||||
}
|
||||
|
||||
# Uninstall
|
||||
Flatseal_uninstall() {
|
||||
setMSG "Uninstalling $Flatseal_emuName."
|
||||
uninstallEmuFP "$Flatseal_emuName" "$Flatseal_emuPath" "genericapplication" ""
|
||||
Flatseal_uninstall () {
|
||||
setMSG "Uninstalling ${Flatseal_emuName}."
|
||||
uninstallEmuFP "${Flatseal_emuName}" "${Flatseal_emuPath}" "genericapplication" ""
|
||||
}
|
||||
|
||||
# Check if installed
|
||||
Flatseal_IsInstalled() {
|
||||
if [ "$(flatpak --columns=app list | grep "$Flatseal_emuPath")" == "$Flatseal_emuPath" ]; then
|
||||
Flatseal_IsInstalled () {
|
||||
if [ "$(flatpak --columns=app list | grep "${Flatseal_emuPath}")" == "${Flatseal_emuPath}" ]; then
|
||||
echo true
|
||||
return 1
|
||||
else
|
||||
@ -42,6 +46,6 @@ Flatseal_IsInstalled() {
|
||||
}
|
||||
|
||||
# Import steam profile
|
||||
Flatseal_addSteamInputProfile() {
|
||||
Flatseal_addSteamInputProfile () {
|
||||
echo "NYI"
|
||||
}
|
||||
|
@ -1,39 +1,44 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# genericApplicationHeroic
|
||||
|
||||
# Variables
|
||||
Heroic_emuName="Heroic-Games-Launcher"
|
||||
Heroic_emuType="$emuDeckEmuTypeAppImage"
|
||||
Heroic_emuPath="$emusFolder/Heroic-Games-Launcher.AppImage"
|
||||
# shellcheck disable=2034,2154
|
||||
Heroic_emuType="${emuDeckEmuTypeAppImage}"
|
||||
# shellcheck disable=2154
|
||||
Heroic_emuPath="${emusFolder}/Heroic-Games-Launcher.AppImage"
|
||||
|
||||
# Install
|
||||
Heroic_install() {
|
||||
setMSG "Installing $Heroic_emuName."
|
||||
# shellcheck disable=2120
|
||||
Heroic_install () {
|
||||
setMSG "Installing ${Heroic_emuName}."
|
||||
|
||||
local showProgress=$1
|
||||
installEmuAI "$Heroic_emuName" "" "$(getReleaseURLGH "Heroic-Games-Launcher/HeroicGamesLauncher" ".AppImage")" "" "" "genericapplication" "$showProgress"
|
||||
local showProgress="${1}"
|
||||
installEmuAI "${Heroic_emuName}" "" "$( getReleaseURLGH "Heroic-Games-Launcher/HeroicGamesLauncher" ".AppImage" )" "" "" "genericapplication" "${showProgress}"
|
||||
}
|
||||
|
||||
# ApplyInitialSettings
|
||||
Heroic_init() {
|
||||
Heroic_init () {
|
||||
echo "NYI"
|
||||
}
|
||||
|
||||
# Update appimage
|
||||
Heroic_update() {
|
||||
setMSG "Updating $Heroic_emuName settings."
|
||||
rm -f "$Heroic_emuPath"
|
||||
Heroic_update () {
|
||||
setMSG "Updating ${Heroic_emuName} settings."
|
||||
rm -f "${Heroic_emuPath}"
|
||||
Heroic_install
|
||||
}
|
||||
|
||||
# Uninstall
|
||||
Heroic_uninstall() {
|
||||
setMSG "Uninstalling $Heroic_emuName."
|
||||
uninstallEmuAI "$Heroic_emuName" "" "" "genericapplication"
|
||||
Heroic_uninstall () {
|
||||
setMSG "Uninstalling ${Heroic_emuName}."
|
||||
uninstallEmuAI "${Heroic_emuName}" "" "" "genericapplication"
|
||||
}
|
||||
|
||||
# Check if installed
|
||||
Heroic_IsInstalled() {
|
||||
if [ -f "$Heroic_emuPath" ]; then
|
||||
Heroic_IsInstalled () {
|
||||
if [ -f "${Heroic_emuPath}" ]; then
|
||||
echo true
|
||||
return 1
|
||||
else
|
||||
@ -43,6 +48,6 @@ Heroic_IsInstalled() {
|
||||
}
|
||||
|
||||
# Import steam profile
|
||||
Heroic_addSteamInputProfile() {
|
||||
Heroic_addSteamInputProfile () {
|
||||
echo "NYI"
|
||||
}
|
||||
|
@ -1,37 +1,41 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# genericApplicationLutris
|
||||
|
||||
# Variables
|
||||
Lutris_emuName="Lutris"
|
||||
Lutris_emuType="$emuDeckEmuTypeFlatpak"
|
||||
# shellcheck disable=2034,2154
|
||||
Lutris_emuType="${emuDeckEmuTypeFlatpak}"
|
||||
Lutris_emuPath="net.lutris.Lutris"
|
||||
# shellcheck disable=2034
|
||||
Lutris_releaseURL=""
|
||||
|
||||
# Install
|
||||
Lutris_install() {
|
||||
Lutris_install () {
|
||||
setMSG "Installing $Lutris_emuName."
|
||||
installEmuFP "${Lutris_emuName}" "${Lutris_emuPath}" "genericapplication" ""
|
||||
}
|
||||
|
||||
# ApplyInitialSettings
|
||||
Lutris_init() {
|
||||
Lutris_init () {
|
||||
setMSG "Initializing $Lutris_emuName settings."
|
||||
configEmuFP "$Lutris_emuName" "$Lutris_emuPath" "true"
|
||||
}
|
||||
|
||||
# Update flatpak & launcher script
|
||||
Lutris_update() {
|
||||
Lutris_update () {
|
||||
setMSG "Updating $Lutris_emuName settings."
|
||||
updateEmuFP "${Lutris_emuName}" "${Lutris_emuPath}" "genericapplication" ""
|
||||
}
|
||||
|
||||
# Uninstall
|
||||
Lutris_uninstall() {
|
||||
Lutris_uninstall () {
|
||||
setMSG "Uninstalling $Lutris_emuName."
|
||||
uninstallEmuFP "$Lutris_emuName" "$Lutris_emuPath" "genericapplication" ""
|
||||
}
|
||||
|
||||
# Check if installed
|
||||
Lutris_IsInstalled() {
|
||||
Lutris_IsInstalled () {
|
||||
if [ "$(flatpak --columns=app list | grep "$Lutris_emuPath")" == "$Lutris_emuPath" ]; then
|
||||
echo true
|
||||
return 1
|
||||
@ -42,6 +46,6 @@ Lutris_IsInstalled() {
|
||||
}
|
||||
|
||||
# Import steam profile
|
||||
Lutris_addSteamInputProfile() {
|
||||
Lutris_addSteamInputProfile () {
|
||||
echo "NYI"
|
||||
}
|
||||
|
@ -1,4 +1,6 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# genericApplicationPlexamp
|
||||
|
||||
# Variables
|
||||
Plexamp_emuName="Plexamp"
|
||||
@ -7,32 +9,32 @@ Plexamp_emuPath="com.plexamp.Plexamp"
|
||||
Plexamp_releaseURL=""
|
||||
|
||||
# Install
|
||||
Plexamp_install() {
|
||||
setMSG "Installing $Plexamp_emuName."
|
||||
Plexamp_install () {
|
||||
setMSG "Installing ${Plexamp_emuName}."
|
||||
installEmuFP "${Plexamp_emuName}" "${Plexamp_emuPath}" "genericapplication" ""
|
||||
}
|
||||
|
||||
# ApplyInitialSettings
|
||||
Plexamp_init() {
|
||||
setMSG "Initializing $Plexamp_emuName settings."
|
||||
configEmuFP "$Plexamp_emuName" "$Plexamp_emuPath" "true"
|
||||
Plexamp_init () {
|
||||
setMSG "Initializing ${Plexamp_emuName} settings."
|
||||
configEmuFP "${Plexamp_emuName}" "${Plexamp_emuPath}" "true"
|
||||
}
|
||||
|
||||
# Update flatpak & launcher script
|
||||
Plexamp_update() {
|
||||
setMSG "Updating $Plexamp_emuName settings."
|
||||
Plexamp_update () {
|
||||
setMSG "Updating ${Plexamp_emuName} settings."
|
||||
updateEmuFP "${Plexamp_emuName}" "${Plexamp_emuPath}" "genericapplication" ""
|
||||
}
|
||||
|
||||
# Uninstall
|
||||
Plexamp_uninstall() {
|
||||
setMSG "Uninstalling $Plexamp_emuName."
|
||||
uninstallEmuFP "$Plexamp_emuName" "$Plexamp_emuPath" "genericapplication" ""
|
||||
Plexamp_uninstall () {
|
||||
setMSG "Uninstalling ${Plexamp_emuName}."
|
||||
uninstallEmuFP "${Plexamp_emuName}" "${Plexamp_emuPath}" "genericapplication" ""
|
||||
}
|
||||
|
||||
# Check if installed
|
||||
Plexamp_IsInstalled() {
|
||||
if [ "$(flatpak --columns=app list | grep "$Plexamp_emuPath")" == "$Plexamp_emuPath" ]; then
|
||||
Plexamp_IsInstalled () {
|
||||
if [ "$(flatpak --columns=app list | grep "${Plexamp_emuPath}")" == "${Plexamp_emuPath}" ]; then
|
||||
echo true
|
||||
return 1
|
||||
else
|
||||
@ -42,6 +44,6 @@ Plexamp_IsInstalled() {
|
||||
}
|
||||
|
||||
# Import steam profile
|
||||
Plexamp_addSteamInputProfile() {
|
||||
Plexamp_addSteamInputProfile () {
|
||||
echo "NYI"
|
||||
}
|
||||
|
@ -1,39 +1,43 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# genericApplicationSpotify
|
||||
|
||||
# Variables
|
||||
Spotify_emuName="Spotify"
|
||||
Spotify_emuType="$emuDeckEmuTypeFlatpak"
|
||||
# shellcheck disable=2034,2154
|
||||
Spotify_emuType="${emuDeckEmuTypeFlatpak}"
|
||||
Spotify_emuPath="com.spotify.Client"
|
||||
# shellcheck disable=2034
|
||||
Spotify_releaseURL=""
|
||||
|
||||
# Install
|
||||
Spotify_install() {
|
||||
setMSG "Installing $Spotify_emuName."
|
||||
Spotify_install () {
|
||||
setMSG "Installing ${Spotify_emuName}."
|
||||
installEmuFP "${Spotify_emuName}" "${Spotify_emuPath}" "genericapplication" ""
|
||||
}
|
||||
|
||||
# ApplyInitialSettings
|
||||
Spotify_init() {
|
||||
setMSG "Initializing $Spotify_emuName settings."
|
||||
configEmuFP "$Spotify_emuName" "$Spotify_emuPath" "true"
|
||||
Spotify_init () {
|
||||
setMSG "Initializing ${Spotify_emuName} settings."
|
||||
configEmuFP "${Spotify_emuName}" "${Spotify_emuPath}" "true"
|
||||
#Spotify_addSteamInputProfile
|
||||
}
|
||||
|
||||
# Update flatpak & launcher script
|
||||
Spotify_update() {
|
||||
setMSG "Updating $Spotify_emuName settings."
|
||||
Spotify_update () {
|
||||
setMSG "Updating ${Spotify_emuName} settings."
|
||||
updateEmuFP "${Spotify_emuName}" "${Spotify_emuPath}" "genericapplication" ""
|
||||
}
|
||||
|
||||
# Uninstall
|
||||
Spotify_uninstall() {
|
||||
setMSG "Uninstalling $Spotify_emuName."
|
||||
uninstallEmuFP "$Spotify_emuName" "${Spotify_emuPath}" "genericapplication" ""
|
||||
Spotify_uninstall () {
|
||||
setMSG "Uninstalling ${Spotify_emuName}."
|
||||
uninstallEmuFP "${Spotify_emuName}" "${Spotify_emuPath}" "genericapplication" ""
|
||||
}
|
||||
|
||||
# Check if installed
|
||||
Spotify_IsInstalled() {
|
||||
if [ "$(flatpak --columns=app list | grep "$Spotify_emuPath")" == "$Spotify_emuPath" ]; then
|
||||
Spotify_IsInstalled () {
|
||||
if [ "$(flatpak --columns=app list | grep "${Spotify_emuPath}")" == "${Spotify_emuPath}" ]; then
|
||||
echo true
|
||||
return 1
|
||||
else
|
||||
@ -43,7 +47,7 @@ Spotify_IsInstalled() {
|
||||
}
|
||||
|
||||
# Import steam profile
|
||||
Spotify_addSteamInputProfile() {
|
||||
Spotify_addSteamInputProfile () {
|
||||
echo "NYI"
|
||||
#rsync -r "$emudeckBackend/configs/steam-input/emudeck_spotify_controller_config.vdf" "$HOME/.steam/steam/controller_base/templates/"
|
||||
}
|
||||
|
@ -1,38 +1,42 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# genericApplicationTidal
|
||||
|
||||
# Variables
|
||||
Tidal_emuName="Tidal"
|
||||
Tidal_emuType="$emuDeckEmuTypeFlatpak"
|
||||
# shellcheck disable=2034,2154
|
||||
Tidal_emuType="${emuDeckEmuTypeFlatpak}"
|
||||
Tidal_emuPath="com.mastermindzh.tidal-hifi"
|
||||
# shellcheck disable=2034
|
||||
Tidal_releaseURL=""
|
||||
|
||||
# Install
|
||||
Tidal_install() {
|
||||
setMSG "Installing $Tidal_emuName."
|
||||
Tidal_install () {
|
||||
setMSG "Installing ${Tidal_emuName}."
|
||||
installEmuFP "${Tidal_emuName}" "${Tidal_emuPath}" "genericapplication" ""
|
||||
}
|
||||
|
||||
# ApplyInitialSettings
|
||||
Tidal_init() {
|
||||
setMSG "Initializing $Tidal_emuName settings."
|
||||
configEmuFP "$Tidal_emuName" "$Tidal_emuPath" "true"
|
||||
Tidal_init () {
|
||||
setMSG "Initializing ${Tidal_emuName} settings."
|
||||
configEmuFP "${Tidal_emuName}" "${Tidal_emuPath}" "true"
|
||||
}
|
||||
|
||||
# Update flatpak & launcher script
|
||||
Tidal_update() {
|
||||
setMSG "Updating $Tidal_emuName settings."
|
||||
Tidal_update () {
|
||||
setMSG "Updating ${Tidal_emuName} settings."
|
||||
updateEmuFP "${Tidal_emuName}" "${Tidal_emuPath}" "genericapplication" ""
|
||||
}
|
||||
|
||||
# Uninstall
|
||||
Tidal_uninstall() {
|
||||
setMSG "Uninstalling $Tidal_emuName."
|
||||
uninstallEmuFP "$Tidal_emuName" "$Tidal_emuPath" "genericapplication" ""
|
||||
Tidal_uninstall () {
|
||||
setMSG "Uninstalling ${Tidal_emuName}."
|
||||
uninstallEmuFP "${Tidal_emuName}" "${Tidal_emuPath}" "genericapplication" ""
|
||||
}
|
||||
|
||||
# Check if installed
|
||||
Tidal_IsInstalled() {
|
||||
if [ "$(flatpak --columns=app list | grep "$Tidal_emuPath")" == "$Tidal_emuPath" ]; then
|
||||
Tidal_IsInstalled () {
|
||||
if [ "$(flatpak --columns=app list | grep "${Tidal_emuPath}")" == "${Tidal_emuPath}" ]; then
|
||||
echo true
|
||||
return 1
|
||||
else
|
||||
@ -42,6 +46,6 @@ Tidal_IsInstalled() {
|
||||
}
|
||||
|
||||
# Import steam profile
|
||||
Tidal_addSteamInputProfile() {
|
||||
Tidal_addSteamInputProfile () {
|
||||
echo "NYI"
|
||||
}
|
||||
|
@ -1,38 +1,42 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# genericApplicationWarehouse
|
||||
|
||||
# Variables
|
||||
Warehouse_emuName="Warehouse"
|
||||
Warehouse_emuType="$emuDeckEmuTypeFlatpak"
|
||||
# shellcheck disable=2034,2154
|
||||
Warehouse_emuType="${emuDeckEmuTypeFlatpak}"
|
||||
Warehouse_emuPath="io.github.flattool.Warehouse"
|
||||
# shellcheck disable=2034
|
||||
Warehouse_releaseURL=""
|
||||
|
||||
# Install
|
||||
Warehouse_install() {
|
||||
setMSG "Installing $Warehouse_emuName."
|
||||
Warehouse_install () {
|
||||
setMSG "Installing ${Warehouse_emuName}."
|
||||
installEmuFP "${Warehouse_emuName}" "${Warehouse_emuPath}" "genericapplication" ""
|
||||
}
|
||||
|
||||
# ApplyInitialSettings
|
||||
Warehouse_init() {
|
||||
setMSG "Initializing $Warehouse_emuName settings."
|
||||
configEmuFP "$Warehouse_emuName" "$Warehouse_emuPath" "true"
|
||||
Warehouse_init () {
|
||||
setMSG "Initializing ${Warehouse_emuName} settings."
|
||||
configEmuFP "${Warehouse_emuName}" "${Warehouse_emuPath}" "true"
|
||||
}
|
||||
|
||||
# Update flatpak & launcher script
|
||||
Warehouse_update() {
|
||||
setMSG "Updating $Warehouse_emuName settings."
|
||||
Warehouse_update () {
|
||||
setMSG "Updating ${Warehouse_emuName} settings."
|
||||
updateEmuFP "${Warehouse_emuName}" "${Warehouse_emuPath}" "genericapplication" ""
|
||||
}
|
||||
|
||||
# Uninstall
|
||||
Warehouse_uninstall() {
|
||||
setMSG "Uninstalling $Warehouse_emuName."
|
||||
uninstallEmuFP "$Warehouse_emuName" "$Warehouse_emuPath" "genericapplication" ""
|
||||
Warehouse_uninstall () {
|
||||
setMSG "Uninstalling ${Warehouse_emuName}."
|
||||
uninstallEmuFP "${Warehouse_emuName}" "${Warehouse_emuPath}" "genericapplication" ""
|
||||
}
|
||||
|
||||
# Check if installed
|
||||
Warehouse_IsInstalled() {
|
||||
if [ "$(flatpak --columns=app list | grep "$Warehouse_emuPath")" == "$Warehouse_emuPath" ]; then
|
||||
Warehouse_IsInstalled () {
|
||||
if [ "$(flatpak --columns=app list | grep "${Warehouse_emuPath}")" == "${Warehouse_emuPath}" ]; then
|
||||
echo true
|
||||
return 1
|
||||
else
|
||||
@ -42,6 +46,6 @@ Warehouse_IsInstalled() {
|
||||
}
|
||||
|
||||
# Import steam profile
|
||||
Warehouse_addSteamInputProfile() {
|
||||
Warehouse_addSteamInputProfile () {
|
||||
echo "NYI"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user