EmuDeck/install.sh

112 lines
4 KiB
Bash
Raw Normal View History

2022-04-22 18:34:11 -04:00
#!/bin/bash
linuxID=$(lsb_release -si)
2024-04-28 17:15:06 -04:00
sandbox=""
Merge from early - CloudSync 2.0, Pegasus, Darwin support (#886) * add json for apotris. this PR adds the needed json for accessing Apotris. * fix pcsx2 cloud * decky functions + Customization moved inside every emulator _init * Decky_setClourd * arSnes var * last touch * test * Darwin wip * darwin wip * old EmuAI * SRM * RA + SRM + ESDE * Moving more if darwin to override.sh * Moving more if darwin to override.sh * installToolAI + darwin ifs cleanups, more overrides :) * fi fix * fixed SRM parsers with ,, * fix rm dmg * RA flatpak first * darwin install * darwin fixes * darwinnnn * jsonjson * darwin srm * fix launchers * SRM env vars moved to a function + override to darwin * ares out for now * fix flycast broking everything * dont check if.cef-enable-remote-debugging * better zenity * fix watcher * zenity fix * cloudSync provider detection * fixed paths fix * darwin fixed paths * fixed paths fix * enable cloudsync * no appinit * last minute fixes * weird fixes * hash fix? * this needs a proper cleanup... * fixed? * back to linkToSaveFolder for now * better duplicate detection * parser disabled * cloudSync final touches * darwin installation * improvements * customSRM * Revert "customSRM" This reverts commit 2787d2282c367801c13ee671f3fab9d198f05fb7. * first batch * second batch * SGBC + Jaguar parsers * Pegasus settings and functions * proper order * Path fixed * install on setup * SRM parser * icon * early beta * chimeraOS improvements # Conflicts: # setup.sh * cosmetic * helpers: Fix FlatPak installed check (#875) * chimeraOS retroarch * clear console * Steam installation * fix shellcheck * path fixes * fix SRM * = * Steam-ROM-Manager * srm new path fix * SRM_IsInstalled * cloudsync wtf * SRM_IsInstalled * Steam ROM Manager proper name * ROM * srm stuff * SRM_migration * icon * fix savedownload * launchers * srm icon * ROM * ummm * fixes installToolAI * ESDE Migration * RetroArch_setConfigOverride fix * fix RA * fix PCSX2QT * back to flatpaks * EmuDecky no internet message * noInternet EmuDecky * pegasus theme installer * pegasus launchers * Pegasus install Darwin * Pegasus install Darwin * Init pegasus * ESDE Theme * = * > * override getEmuInstallStatus --------- Co-authored-by: Glazed_Belmont <48196637+GlaZedBelmont@users.noreply.github.com>
2023-10-10 16:20:54 -04:00
if [ $linuxID != "ChimeraOS" ]; then
2023-06-03 20:35:47 -04:00
2023-06-04 07:05:03 -04:00
echo "installing EmuDeck"
elif [ $linuxID != "SteamOS" ]; then
2023-06-03 20:35:47 -04:00
Merge from early - CloudSync 2.0, Pegasus, Darwin support (#886) * add json for apotris. this PR adds the needed json for accessing Apotris. * fix pcsx2 cloud * decky functions + Customization moved inside every emulator _init * Decky_setClourd * arSnes var * last touch * test * Darwin wip * darwin wip * old EmuAI * SRM * RA + SRM + ESDE * Moving more if darwin to override.sh * Moving more if darwin to override.sh * installToolAI + darwin ifs cleanups, more overrides :) * fi fix * fixed SRM parsers with ,, * fix rm dmg * RA flatpak first * darwin install * darwin fixes * darwinnnn * jsonjson * darwin srm * fix launchers * SRM env vars moved to a function + override to darwin * ares out for now * fix flycast broking everything * dont check if.cef-enable-remote-debugging * better zenity * fix watcher * zenity fix * cloudSync provider detection * fixed paths fix * darwin fixed paths * fixed paths fix * enable cloudsync * no appinit * last minute fixes * weird fixes * hash fix? * this needs a proper cleanup... * fixed? * back to linkToSaveFolder for now * better duplicate detection * parser disabled * cloudSync final touches * darwin installation * improvements * customSRM * Revert "customSRM" This reverts commit 2787d2282c367801c13ee671f3fab9d198f05fb7. * first batch * second batch * SGBC + Jaguar parsers * Pegasus settings and functions * proper order * Path fixed * install on setup * SRM parser * icon * early beta * chimeraOS improvements # Conflicts: # setup.sh * cosmetic * helpers: Fix FlatPak installed check (#875) * chimeraOS retroarch * clear console * Steam installation * fix shellcheck * path fixes * fix SRM * = * Steam-ROM-Manager * srm new path fix * SRM_IsInstalled * cloudsync wtf * SRM_IsInstalled * Steam ROM Manager proper name * ROM * srm stuff * SRM_migration * icon * fix savedownload * launchers * srm icon * ROM * ummm * fixes installToolAI * ESDE Migration * RetroArch_setConfigOverride fix * fix RA * fix PCSX2QT * back to flatpaks * EmuDecky no internet message * noInternet EmuDecky * pegasus theme installer * pegasus launchers * Pegasus install Darwin * Pegasus install Darwin * Init pegasus * ESDE Theme * = * > * override getEmuInstallStatus --------- Co-authored-by: Glazed_Belmont <48196637+GlaZedBelmont@users.noreply.github.com>
2023-10-10 16:20:54 -04:00
zenityAvailable=$(command -v zenity &> /dev/null && echo true)
Merge from early - CloudSync 2.0, Pegasus, Darwin support (#886) * add json for apotris. this PR adds the needed json for accessing Apotris. * fix pcsx2 cloud * decky functions + Customization moved inside every emulator _init * Decky_setClourd * arSnes var * last touch * test * Darwin wip * darwin wip * old EmuAI * SRM * RA + SRM + ESDE * Moving more if darwin to override.sh * Moving more if darwin to override.sh * installToolAI + darwin ifs cleanups, more overrides :) * fi fix * fixed SRM parsers with ,, * fix rm dmg * RA flatpak first * darwin install * darwin fixes * darwinnnn * jsonjson * darwin srm * fix launchers * SRM env vars moved to a function + override to darwin * ares out for now * fix flycast broking everything * dont check if.cef-enable-remote-debugging * better zenity * fix watcher * zenity fix * cloudSync provider detection * fixed paths fix * darwin fixed paths * fixed paths fix * enable cloudsync * no appinit * last minute fixes * weird fixes * hash fix? * this needs a proper cleanup... * fixed? * back to linkToSaveFolder for now * better duplicate detection * parser disabled * cloudSync final touches * darwin installation * improvements * customSRM * Revert "customSRM" This reverts commit 2787d2282c367801c13ee671f3fab9d198f05fb7. * first batch * second batch * SGBC + Jaguar parsers * Pegasus settings and functions * proper order * Path fixed * install on setup * SRM parser * icon * early beta * chimeraOS improvements # Conflicts: # setup.sh * cosmetic * helpers: Fix FlatPak installed check (#875) * chimeraOS retroarch * clear console * Steam installation * fix shellcheck * path fixes * fix SRM * = * Steam-ROM-Manager * srm new path fix * SRM_IsInstalled * cloudsync wtf * SRM_IsInstalled * Steam ROM Manager proper name * ROM * srm stuff * SRM_migration * icon * fix savedownload * launchers * srm icon * ROM * ummm * fixes installToolAI * ESDE Migration * RetroArch_setConfigOverride fix * fix RA * fix PCSX2QT * back to flatpaks * EmuDecky no internet message * noInternet EmuDecky * pegasus theme installer * pegasus launchers * Pegasus install Darwin * Pegasus install Darwin * Init pegasus * ESDE Theme * = * > * override getEmuInstallStatus --------- Co-authored-by: Glazed_Belmont <48196637+GlaZedBelmont@users.noreply.github.com>
2023-10-10 16:20:54 -04:00
if [[ $zenityAvailable = true ]];then
Handle special chars when echoing password for sudo req funcs? (#901) * adds updating the roms path in usersettings to the migration * Fix migration with saves * Hotfix dolphin config Remove WirelessMac * SRM: update saturn parser to include saturnjp * freeze PCSX2 # Conflicts: # functions/EmuScripts/emuDeckPCSX2QT.sh * Update emuDeckPCSX2QT.sh * Add GitHub Issue Templates * Create pull_request_template.md * Update README.md * Update README.md * helpers: Fix FlatPak installed check (#875) The previous way of checking whether a package was installed or not was incorrect in its assumption, that a package ID will only occur once in the flatpak installed list. I noticed this while trying to install PPSSPP, as FlatPak installs a `org.ppsspp.PPSSPP` and `org.ppsspp.PPSSPP.Locale` package. The package was installed correctly, but EmuDeck would register it as non-installed. Signed-off-by: Sophie 'Tyalie' Friedrich <dev@flowerpot.me> * SDL Driver * hotfix Vita3k releaseURL hotfix Vita3k releaseURL * Update Vita3K's default config path (#890) * better linux support * Chimera * chimera * chimera * chimeraaa * chimeraPath * chimeraos FIX * chimera fixes * fixed readme # Conflicts: # README.md # Conflicts: # README.md * Handle special chars when echoing password for sudo req funcs * store zenity/cli prompt passwd as str --------- Signed-off-by: Sophie 'Tyalie' Friedrich <dev@flowerpot.me> Co-authored-by: Livedeht <godsbane@gmail.com> Co-authored-by: Rodrigo <rodrigosedano@me.com> Co-authored-by: 108900299+rawdatafeel@users.noreply.github.com <108900299+rawdatafeel@users.noreply.github.com> Co-authored-by: Sophie Tyalie <dev@flowerpot.me> Co-authored-by: Pedro Montes Alcalde <pedro.montes.alcalde@gmail.com>
2023-12-29 10:58:03 -05:00
read -r PASSWD <<< "$(zenity --password --title="Password Entry" --text="Enter you user sudo password to install required depencies" 2>/dev/null)"
2023-06-03 20:35:47 -04:00
echo "$PASSWD" | sudo -v -S
ans=$?
if [[ $ans == 1 ]]; then
2023-06-03 20:35:47 -04:00
#incorrect password
Handle special chars when echoing password for sudo req funcs? (#901) * adds updating the roms path in usersettings to the migration * Fix migration with saves * Hotfix dolphin config Remove WirelessMac * SRM: update saturn parser to include saturnjp * freeze PCSX2 # Conflicts: # functions/EmuScripts/emuDeckPCSX2QT.sh * Update emuDeckPCSX2QT.sh * Add GitHub Issue Templates * Create pull_request_template.md * Update README.md * Update README.md * helpers: Fix FlatPak installed check (#875) The previous way of checking whether a package was installed or not was incorrect in its assumption, that a package ID will only occur once in the flatpak installed list. I noticed this while trying to install PPSSPP, as FlatPak installs a `org.ppsspp.PPSSPP` and `org.ppsspp.PPSSPP.Locale` package. The package was installed correctly, but EmuDeck would register it as non-installed. Signed-off-by: Sophie 'Tyalie' Friedrich <dev@flowerpot.me> * SDL Driver * hotfix Vita3k releaseURL hotfix Vita3k releaseURL * Update Vita3K's default config path (#890) * better linux support * Chimera * chimera * chimera * chimeraaa * chimeraPath * chimeraos FIX * chimera fixes * fixed readme # Conflicts: # README.md # Conflicts: # README.md * Handle special chars when echoing password for sudo req funcs * store zenity/cli prompt passwd as str --------- Signed-off-by: Sophie 'Tyalie' Friedrich <dev@flowerpot.me> Co-authored-by: Livedeht <godsbane@gmail.com> Co-authored-by: Rodrigo <rodrigosedano@me.com> Co-authored-by: 108900299+rawdatafeel@users.noreply.github.com <108900299+rawdatafeel@users.noreply.github.com> Co-authored-by: Sophie Tyalie <dev@flowerpot.me> Co-authored-by: Pedro Montes Alcalde <pedro.montes.alcalde@gmail.com>
2023-12-29 10:58:03 -05:00
read -r PASSWD <<< "$(zenity --password --title="Password Entry" --text="Password was incorrect. Try again. (Did you remember to set a password for linux before running this?)" 2>/dev/null)"
2023-06-03 20:35:47 -04:00
echo "$PASSWD" | sudo -v -S
ans=$?
if [[ $ans == 1 ]]; then
2023-06-03 20:35:47 -04:00
text="$(printf "<b>Password not accepted.</b>\n Expert mode tools which require a password will not work. Disabling them.")"
zenity --error \
--title="EmuDeck" \
--width=400 \
--text="${text}" 2>/dev/null
setSetting doInstallPowertools false
setSetting doInstallGyro false
fi
fi
fi
Merge from early - CloudSync 2.0, Pegasus, Darwin support (#886) * add json for apotris. this PR adds the needed json for accessing Apotris. * fix pcsx2 cloud * decky functions + Customization moved inside every emulator _init * Decky_setClourd * arSnes var * last touch * test * Darwin wip * darwin wip * old EmuAI * SRM * RA + SRM + ESDE * Moving more if darwin to override.sh * Moving more if darwin to override.sh * installToolAI + darwin ifs cleanups, more overrides :) * fi fix * fixed SRM parsers with ,, * fix rm dmg * RA flatpak first * darwin install * darwin fixes * darwinnnn * jsonjson * darwin srm * fix launchers * SRM env vars moved to a function + override to darwin * ares out for now * fix flycast broking everything * dont check if.cef-enable-remote-debugging * better zenity * fix watcher * zenity fix * cloudSync provider detection * fixed paths fix * darwin fixed paths * fixed paths fix * enable cloudsync * no appinit * last minute fixes * weird fixes * hash fix? * this needs a proper cleanup... * fixed? * back to linkToSaveFolder for now * better duplicate detection * parser disabled * cloudSync final touches * darwin installation * improvements * customSRM * Revert "customSRM" This reverts commit 2787d2282c367801c13ee671f3fab9d198f05fb7. * first batch * second batch * SGBC + Jaguar parsers * Pegasus settings and functions * proper order * Path fixed * install on setup * SRM parser * icon * early beta * chimeraOS improvements # Conflicts: # setup.sh * cosmetic * helpers: Fix FlatPak installed check (#875) * chimeraOS retroarch * clear console * Steam installation * fix shellcheck * path fixes * fix SRM * = * Steam-ROM-Manager * srm new path fix * SRM_IsInstalled * cloudsync wtf * SRM_IsInstalled * Steam ROM Manager proper name * ROM * srm stuff * SRM_migration * icon * fix savedownload * launchers * srm icon * ROM * ummm * fixes installToolAI * ESDE Migration * RetroArch_setConfigOverride fix * fix RA * fix PCSX2QT * back to flatpaks * EmuDecky no internet message * noInternet EmuDecky * pegasus theme installer * pegasus launchers * Pegasus install Darwin * Pegasus install Darwin * Init pegasus * ESDE Theme * = * > * override getEmuInstallStatus --------- Co-authored-by: Glazed_Belmont <48196637+GlaZedBelmont@users.noreply.github.com>
2023-10-10 16:20:54 -04:00
2023-06-03 20:35:47 -04:00
SCRIPT_DIR=$( cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)
Merge from early - CloudSync 2.0, Pegasus, Darwin support (#886) * add json for apotris. this PR adds the needed json for accessing Apotris. * fix pcsx2 cloud * decky functions + Customization moved inside every emulator _init * Decky_setClourd * arSnes var * last touch * test * Darwin wip * darwin wip * old EmuAI * SRM * RA + SRM + ESDE * Moving more if darwin to override.sh * Moving more if darwin to override.sh * installToolAI + darwin ifs cleanups, more overrides :) * fi fix * fixed SRM parsers with ,, * fix rm dmg * RA flatpak first * darwin install * darwin fixes * darwinnnn * jsonjson * darwin srm * fix launchers * SRM env vars moved to a function + override to darwin * ares out for now * fix flycast broking everything * dont check if.cef-enable-remote-debugging * better zenity * fix watcher * zenity fix * cloudSync provider detection * fixed paths fix * darwin fixed paths * fixed paths fix * enable cloudsync * no appinit * last minute fixes * weird fixes * hash fix? * this needs a proper cleanup... * fixed? * back to linkToSaveFolder for now * better duplicate detection * parser disabled * cloudSync final touches * darwin installation * improvements * customSRM * Revert "customSRM" This reverts commit 2787d2282c367801c13ee671f3fab9d198f05fb7. * first batch * second batch * SGBC + Jaguar parsers * Pegasus settings and functions * proper order * Path fixed * install on setup * SRM parser * icon * early beta * chimeraOS improvements # Conflicts: # setup.sh * cosmetic * helpers: Fix FlatPak installed check (#875) * chimeraOS retroarch * clear console * Steam installation * fix shellcheck * path fixes * fix SRM * = * Steam-ROM-Manager * srm new path fix * SRM_IsInstalled * cloudsync wtf * SRM_IsInstalled * Steam ROM Manager proper name * ROM * srm stuff * SRM_migration * icon * fix savedownload * launchers * srm icon * ROM * ummm * fixes installToolAI * ESDE Migration * RetroArch_setConfigOverride fix * fix RA * fix PCSX2QT * back to flatpaks * EmuDecky no internet message * noInternet EmuDecky * pegasus theme installer * pegasus launchers * Pegasus install Darwin * Pegasus install Darwin * Init pegasus * ESDE Theme * = * > * override getEmuInstallStatus --------- Co-authored-by: Glazed_Belmont <48196637+GlaZedBelmont@users.noreply.github.com>
2023-10-10 16:20:54 -04:00
2023-06-03 20:35:47 -04:00
function log_err {
echo "$@" >&2
}
Merge from early - CloudSync 2.0, Pegasus, Darwin support (#886) * add json for apotris. this PR adds the needed json for accessing Apotris. * fix pcsx2 cloud * decky functions + Customization moved inside every emulator _init * Decky_setClourd * arSnes var * last touch * test * Darwin wip * darwin wip * old EmuAI * SRM * RA + SRM + ESDE * Moving more if darwin to override.sh * Moving more if darwin to override.sh * installToolAI + darwin ifs cleanups, more overrides :) * fi fix * fixed SRM parsers with ,, * fix rm dmg * RA flatpak first * darwin install * darwin fixes * darwinnnn * jsonjson * darwin srm * fix launchers * SRM env vars moved to a function + override to darwin * ares out for now * fix flycast broking everything * dont check if.cef-enable-remote-debugging * better zenity * fix watcher * zenity fix * cloudSync provider detection * fixed paths fix * darwin fixed paths * fixed paths fix * enable cloudsync * no appinit * last minute fixes * weird fixes * hash fix? * this needs a proper cleanup... * fixed? * back to linkToSaveFolder for now * better duplicate detection * parser disabled * cloudSync final touches * darwin installation * improvements * customSRM * Revert "customSRM" This reverts commit 2787d2282c367801c13ee671f3fab9d198f05fb7. * first batch * second batch * SGBC + Jaguar parsers * Pegasus settings and functions * proper order * Path fixed * install on setup * SRM parser * icon * early beta * chimeraOS improvements # Conflicts: # setup.sh * cosmetic * helpers: Fix FlatPak installed check (#875) * chimeraOS retroarch * clear console * Steam installation * fix shellcheck * path fixes * fix SRM * = * Steam-ROM-Manager * srm new path fix * SRM_IsInstalled * cloudsync wtf * SRM_IsInstalled * Steam ROM Manager proper name * ROM * srm stuff * SRM_migration * icon * fix savedownload * launchers * srm icon * ROM * ummm * fixes installToolAI * ESDE Migration * RetroArch_setConfigOverride fix * fix RA * fix PCSX2QT * back to flatpaks * EmuDecky no internet message * noInternet EmuDecky * pegasus theme installer * pegasus launchers * Pegasus install Darwin * Pegasus install Darwin * Init pegasus * ESDE Theme * = * > * override getEmuInstallStatus --------- Co-authored-by: Glazed_Belmont <48196637+GlaZedBelmont@users.noreply.github.com>
2023-10-10 16:20:54 -04:00
2023-06-03 20:35:47 -04:00
function script_failure {
log_err "An error occurred:$([ -z "$1" ] && " on line $1" || "(unknown)")."
log_err "Installation failed!"
exit
2023-06-03 20:35:47 -04:00
}
Merge from early - CloudSync 2.0, Pegasus, Darwin support (#886) * add json for apotris. this PR adds the needed json for accessing Apotris. * fix pcsx2 cloud * decky functions + Customization moved inside every emulator _init * Decky_setClourd * arSnes var * last touch * test * Darwin wip * darwin wip * old EmuAI * SRM * RA + SRM + ESDE * Moving more if darwin to override.sh * Moving more if darwin to override.sh * installToolAI + darwin ifs cleanups, more overrides :) * fi fix * fixed SRM parsers with ,, * fix rm dmg * RA flatpak first * darwin install * darwin fixes * darwinnnn * jsonjson * darwin srm * fix launchers * SRM env vars moved to a function + override to darwin * ares out for now * fix flycast broking everything * dont check if.cef-enable-remote-debugging * better zenity * fix watcher * zenity fix * cloudSync provider detection * fixed paths fix * darwin fixed paths * fixed paths fix * enable cloudsync * no appinit * last minute fixes * weird fixes * hash fix? * this needs a proper cleanup... * fixed? * back to linkToSaveFolder for now * better duplicate detection * parser disabled * cloudSync final touches * darwin installation * improvements * customSRM * Revert "customSRM" This reverts commit 2787d2282c367801c13ee671f3fab9d198f05fb7. * first batch * second batch * SGBC + Jaguar parsers * Pegasus settings and functions * proper order * Path fixed * install on setup * SRM parser * icon * early beta * chimeraOS improvements # Conflicts: # setup.sh * cosmetic * helpers: Fix FlatPak installed check (#875) * chimeraOS retroarch * clear console * Steam installation * fix shellcheck * path fixes * fix SRM * = * Steam-ROM-Manager * srm new path fix * SRM_IsInstalled * cloudsync wtf * SRM_IsInstalled * Steam ROM Manager proper name * ROM * srm stuff * SRM_migration * icon * fix savedownload * launchers * srm icon * ROM * ummm * fixes installToolAI * ESDE Migration * RetroArch_setConfigOverride fix * fix RA * fix PCSX2QT * back to flatpaks * EmuDecky no internet message * noInternet EmuDecky * pegasus theme installer * pegasus launchers * Pegasus install Darwin * Pegasus install Darwin * Init pegasus * ESDE Theme * = * > * override getEmuInstallStatus --------- Co-authored-by: Glazed_Belmont <48196637+GlaZedBelmont@users.noreply.github.com>
2023-10-10 16:20:54 -04:00
#trap 'script_failure $LINENO' ERR
Merge from early - CloudSync 2.0, Pegasus, Darwin support (#886) * add json for apotris. this PR adds the needed json for accessing Apotris. * fix pcsx2 cloud * decky functions + Customization moved inside every emulator _init * Decky_setClourd * arSnes var * last touch * test * Darwin wip * darwin wip * old EmuAI * SRM * RA + SRM + ESDE * Moving more if darwin to override.sh * Moving more if darwin to override.sh * installToolAI + darwin ifs cleanups, more overrides :) * fi fix * fixed SRM parsers with ,, * fix rm dmg * RA flatpak first * darwin install * darwin fixes * darwinnnn * jsonjson * darwin srm * fix launchers * SRM env vars moved to a function + override to darwin * ares out for now * fix flycast broking everything * dont check if.cef-enable-remote-debugging * better zenity * fix watcher * zenity fix * cloudSync provider detection * fixed paths fix * darwin fixed paths * fixed paths fix * enable cloudsync * no appinit * last minute fixes * weird fixes * hash fix? * this needs a proper cleanup... * fixed? * back to linkToSaveFolder for now * better duplicate detection * parser disabled * cloudSync final touches * darwin installation * improvements * customSRM * Revert "customSRM" This reverts commit 2787d2282c367801c13ee671f3fab9d198f05fb7. * first batch * second batch * SGBC + Jaguar parsers * Pegasus settings and functions * proper order * Path fixed * install on setup * SRM parser * icon * early beta * chimeraOS improvements # Conflicts: # setup.sh * cosmetic * helpers: Fix FlatPak installed check (#875) * chimeraOS retroarch * clear console * Steam installation * fix shellcheck * path fixes * fix SRM * = * Steam-ROM-Manager * srm new path fix * SRM_IsInstalled * cloudsync wtf * SRM_IsInstalled * Steam ROM Manager proper name * ROM * srm stuff * SRM_migration * icon * fix savedownload * launchers * srm icon * ROM * ummm * fixes installToolAI * ESDE Migration * RetroArch_setConfigOverride fix * fix RA * fix PCSX2QT * back to flatpaks * EmuDecky no internet message * noInternet EmuDecky * pegasus theme installer * pegasus launchers * Pegasus install Darwin * Pegasus install Darwin * Init pegasus * ESDE Theme * = * > * override getEmuInstallStatus --------- Co-authored-by: Glazed_Belmont <48196637+GlaZedBelmont@users.noreply.github.com>
2023-10-10 16:20:54 -04:00
2023-06-03 20:35:47 -04:00
echo "Installing EmuDeck dependencies..."
Merge from early - CloudSync 2.0, Pegasus, Darwin support (#886) * add json for apotris. this PR adds the needed json for accessing Apotris. * fix pcsx2 cloud * decky functions + Customization moved inside every emulator _init * Decky_setClourd * arSnes var * last touch * test * Darwin wip * darwin wip * old EmuAI * SRM * RA + SRM + ESDE * Moving more if darwin to override.sh * Moving more if darwin to override.sh * installToolAI + darwin ifs cleanups, more overrides :) * fi fix * fixed SRM parsers with ,, * fix rm dmg * RA flatpak first * darwin install * darwin fixes * darwinnnn * jsonjson * darwin srm * fix launchers * SRM env vars moved to a function + override to darwin * ares out for now * fix flycast broking everything * dont check if.cef-enable-remote-debugging * better zenity * fix watcher * zenity fix * cloudSync provider detection * fixed paths fix * darwin fixed paths * fixed paths fix * enable cloudsync * no appinit * last minute fixes * weird fixes * hash fix? * this needs a proper cleanup... * fixed? * back to linkToSaveFolder for now * better duplicate detection * parser disabled * cloudSync final touches * darwin installation * improvements * customSRM * Revert "customSRM" This reverts commit 2787d2282c367801c13ee671f3fab9d198f05fb7. * first batch * second batch * SGBC + Jaguar parsers * Pegasus settings and functions * proper order * Path fixed * install on setup * SRM parser * icon * early beta * chimeraOS improvements # Conflicts: # setup.sh * cosmetic * helpers: Fix FlatPak installed check (#875) * chimeraOS retroarch * clear console * Steam installation * fix shellcheck * path fixes * fix SRM * = * Steam-ROM-Manager * srm new path fix * SRM_IsInstalled * cloudsync wtf * SRM_IsInstalled * Steam ROM Manager proper name * ROM * srm stuff * SRM_migration * icon * fix savedownload * launchers * srm icon * ROM * ummm * fixes installToolAI * ESDE Migration * RetroArch_setConfigOverride fix * fix RA * fix PCSX2QT * back to flatpaks * EmuDecky no internet message * noInternet EmuDecky * pegasus theme installer * pegasus launchers * Pegasus install Darwin * Pegasus install Darwin * Init pegasus * ESDE Theme * = * > * override getEmuInstallStatus --------- Co-authored-by: Glazed_Belmont <48196637+GlaZedBelmont@users.noreply.github.com>
2023-10-10 16:20:54 -04:00
if command -v apt-get >/dev/null; then
echo "Installing packages with apt..."
2023-09-07 14:23:57 -04:00
DEBIAN_DEPS="jq zenity flatpak unzip bash libfuse2 git rsync whiptail"
2024-04-28 17:15:06 -04:00
sandbox=" --no-sandbox"
Merge from early - CloudSync 2.0, Pegasus, Darwin support (#886) * add json for apotris. this PR adds the needed json for accessing Apotris. * fix pcsx2 cloud * decky functions + Customization moved inside every emulator _init * Decky_setClourd * arSnes var * last touch * test * Darwin wip * darwin wip * old EmuAI * SRM * RA + SRM + ESDE * Moving more if darwin to override.sh * Moving more if darwin to override.sh * installToolAI + darwin ifs cleanups, more overrides :) * fi fix * fixed SRM parsers with ,, * fix rm dmg * RA flatpak first * darwin install * darwin fixes * darwinnnn * jsonjson * darwin srm * fix launchers * SRM env vars moved to a function + override to darwin * ares out for now * fix flycast broking everything * dont check if.cef-enable-remote-debugging * better zenity * fix watcher * zenity fix * cloudSync provider detection * fixed paths fix * darwin fixed paths * fixed paths fix * enable cloudsync * no appinit * last minute fixes * weird fixes * hash fix? * this needs a proper cleanup... * fixed? * back to linkToSaveFolder for now * better duplicate detection * parser disabled * cloudSync final touches * darwin installation * improvements * customSRM * Revert "customSRM" This reverts commit 2787d2282c367801c13ee671f3fab9d198f05fb7. * first batch * second batch * SGBC + Jaguar parsers * Pegasus settings and functions * proper order * Path fixed * install on setup * SRM parser * icon * early beta * chimeraOS improvements # Conflicts: # setup.sh * cosmetic * helpers: Fix FlatPak installed check (#875) * chimeraOS retroarch * clear console * Steam installation * fix shellcheck * path fixes * fix SRM * = * Steam-ROM-Manager * srm new path fix * SRM_IsInstalled * cloudsync wtf * SRM_IsInstalled * Steam ROM Manager proper name * ROM * srm stuff * SRM_migration * icon * fix savedownload * launchers * srm icon * ROM * ummm * fixes installToolAI * ESDE Migration * RetroArch_setConfigOverride fix * fix RA * fix PCSX2QT * back to flatpaks * EmuDecky no internet message * noInternet EmuDecky * pegasus theme installer * pegasus launchers * Pegasus install Darwin * Pegasus install Darwin * Init pegasus * ESDE Theme * = * > * override getEmuInstallStatus --------- Co-authored-by: Glazed_Belmont <48196637+GlaZedBelmont@users.noreply.github.com>
2023-10-10 16:20:54 -04:00
sudo killall apt apt-get
2023-06-03 20:35:47 -04:00
sudo apt-get -y update
sudo apt-get -y install $DEBIAN_DEPS
elif command -v pacman >/dev/null; then
2023-06-03 20:35:47 -04:00
echo "Installing packages with pacman..."
2023-09-07 14:23:57 -04:00
ARCH_DEPS="steam jq zenity flatpak unzip bash fuse2 git rsync whiptail"
Merge from early - CloudSync 2.0, Pegasus, Darwin support (#886) * add json for apotris. this PR adds the needed json for accessing Apotris. * fix pcsx2 cloud * decky functions + Customization moved inside every emulator _init * Decky_setClourd * arSnes var * last touch * test * Darwin wip * darwin wip * old EmuAI * SRM * RA + SRM + ESDE * Moving more if darwin to override.sh * Moving more if darwin to override.sh * installToolAI + darwin ifs cleanups, more overrides :) * fi fix * fixed SRM parsers with ,, * fix rm dmg * RA flatpak first * darwin install * darwin fixes * darwinnnn * jsonjson * darwin srm * fix launchers * SRM env vars moved to a function + override to darwin * ares out for now * fix flycast broking everything * dont check if.cef-enable-remote-debugging * better zenity * fix watcher * zenity fix * cloudSync provider detection * fixed paths fix * darwin fixed paths * fixed paths fix * enable cloudsync * no appinit * last minute fixes * weird fixes * hash fix? * this needs a proper cleanup... * fixed? * back to linkToSaveFolder for now * better duplicate detection * parser disabled * cloudSync final touches * darwin installation * improvements * customSRM * Revert "customSRM" This reverts commit 2787d2282c367801c13ee671f3fab9d198f05fb7. * first batch * second batch * SGBC + Jaguar parsers * Pegasus settings and functions * proper order * Path fixed * install on setup * SRM parser * icon * early beta * chimeraOS improvements # Conflicts: # setup.sh * cosmetic * helpers: Fix FlatPak installed check (#875) * chimeraOS retroarch * clear console * Steam installation * fix shellcheck * path fixes * fix SRM * = * Steam-ROM-Manager * srm new path fix * SRM_IsInstalled * cloudsync wtf * SRM_IsInstalled * Steam ROM Manager proper name * ROM * srm stuff * SRM_migration * icon * fix savedownload * launchers * srm icon * ROM * ummm * fixes installToolAI * ESDE Migration * RetroArch_setConfigOverride fix * fix RA * fix PCSX2QT * back to flatpaks * EmuDecky no internet message * noInternet EmuDecky * pegasus theme installer * pegasus launchers * Pegasus install Darwin * Pegasus install Darwin * Init pegasus * ESDE Theme * = * > * override getEmuInstallStatus --------- Co-authored-by: Glazed_Belmont <48196637+GlaZedBelmont@users.noreply.github.com>
2023-10-10 16:20:54 -04:00
sudo pacman --noconfirm -Syu
2023-07-22 13:11:34 -04:00
sudo pacman --noconfirm -S $ARCH_DEPS
elif command -v dnf >/dev/null; then
echo "Installing packages with dnf..."
2023-12-21 12:58:55 -05:00
FEDORA_DEPS="jq zenity flatpak unzip bash fuse git rsync newt"
Merge from early - CloudSync 2.0, Pegasus, Darwin support (#886) * add json for apotris. this PR adds the needed json for accessing Apotris. * fix pcsx2 cloud * decky functions + Customization moved inside every emulator _init * Decky_setClourd * arSnes var * last touch * test * Darwin wip * darwin wip * old EmuAI * SRM * RA + SRM + ESDE * Moving more if darwin to override.sh * Moving more if darwin to override.sh * installToolAI + darwin ifs cleanups, more overrides :) * fi fix * fixed SRM parsers with ,, * fix rm dmg * RA flatpak first * darwin install * darwin fixes * darwinnnn * jsonjson * darwin srm * fix launchers * SRM env vars moved to a function + override to darwin * ares out for now * fix flycast broking everything * dont check if.cef-enable-remote-debugging * better zenity * fix watcher * zenity fix * cloudSync provider detection * fixed paths fix * darwin fixed paths * fixed paths fix * enable cloudsync * no appinit * last minute fixes * weird fixes * hash fix? * this needs a proper cleanup... * fixed? * back to linkToSaveFolder for now * better duplicate detection * parser disabled * cloudSync final touches * darwin installation * improvements * customSRM * Revert "customSRM" This reverts commit 2787d2282c367801c13ee671f3fab9d198f05fb7. * first batch * second batch * SGBC + Jaguar parsers * Pegasus settings and functions * proper order * Path fixed * install on setup * SRM parser * icon * early beta * chimeraOS improvements # Conflicts: # setup.sh * cosmetic * helpers: Fix FlatPak installed check (#875) * chimeraOS retroarch * clear console * Steam installation * fix shellcheck * path fixes * fix SRM * = * Steam-ROM-Manager * srm new path fix * SRM_IsInstalled * cloudsync wtf * SRM_IsInstalled * Steam ROM Manager proper name * ROM * srm stuff * SRM_migration * icon * fix savedownload * launchers * srm icon * ROM * ummm * fixes installToolAI * ESDE Migration * RetroArch_setConfigOverride fix * fix RA * fix PCSX2QT * back to flatpaks * EmuDecky no internet message * noInternet EmuDecky * pegasus theme installer * pegasus launchers * Pegasus install Darwin * Pegasus install Darwin * Init pegasus * ESDE Theme * = * > * override getEmuInstallStatus --------- Co-authored-by: Glazed_Belmont <48196637+GlaZedBelmont@users.noreply.github.com>
2023-10-10 16:20:54 -04:00
2023-07-22 13:11:34 -04:00
sudo dnf -y upgrade
sudo dnf -y install $FEDORA_DEPS
elif command -v zypper >/dev/null; then
echo "Installing packages with zypper..."
2023-09-07 14:23:57 -04:00
SUSE_DEPS="steam jq zenity flatpak unzip bash libfuse2 git rsync whiptail"
Merge from early - CloudSync 2.0, Pegasus, Darwin support (#886) * add json for apotris. this PR adds the needed json for accessing Apotris. * fix pcsx2 cloud * decky functions + Customization moved inside every emulator _init * Decky_setClourd * arSnes var * last touch * test * Darwin wip * darwin wip * old EmuAI * SRM * RA + SRM + ESDE * Moving more if darwin to override.sh * Moving more if darwin to override.sh * installToolAI + darwin ifs cleanups, more overrides :) * fi fix * fixed SRM parsers with ,, * fix rm dmg * RA flatpak first * darwin install * darwin fixes * darwinnnn * jsonjson * darwin srm * fix launchers * SRM env vars moved to a function + override to darwin * ares out for now * fix flycast broking everything * dont check if.cef-enable-remote-debugging * better zenity * fix watcher * zenity fix * cloudSync provider detection * fixed paths fix * darwin fixed paths * fixed paths fix * enable cloudsync * no appinit * last minute fixes * weird fixes * hash fix? * this needs a proper cleanup... * fixed? * back to linkToSaveFolder for now * better duplicate detection * parser disabled * cloudSync final touches * darwin installation * improvements * customSRM * Revert "customSRM" This reverts commit 2787d2282c367801c13ee671f3fab9d198f05fb7. * first batch * second batch * SGBC + Jaguar parsers * Pegasus settings and functions * proper order * Path fixed * install on setup * SRM parser * icon * early beta * chimeraOS improvements # Conflicts: # setup.sh * cosmetic * helpers: Fix FlatPak installed check (#875) * chimeraOS retroarch * clear console * Steam installation * fix shellcheck * path fixes * fix SRM * = * Steam-ROM-Manager * srm new path fix * SRM_IsInstalled * cloudsync wtf * SRM_IsInstalled * Steam ROM Manager proper name * ROM * srm stuff * SRM_migration * icon * fix savedownload * launchers * srm icon * ROM * ummm * fixes installToolAI * ESDE Migration * RetroArch_setConfigOverride fix * fix RA * fix PCSX2QT * back to flatpaks * EmuDecky no internet message * noInternet EmuDecky * pegasus theme installer * pegasus launchers * Pegasus install Darwin * Pegasus install Darwin * Init pegasus * ESDE Theme * = * > * override getEmuInstallStatus --------- Co-authored-by: Glazed_Belmont <48196637+GlaZedBelmont@users.noreply.github.com>
2023-10-10 16:20:54 -04:00
2023-07-22 13:11:34 -04:00
sudo zypper --non-interactive up
sudo zypper --non-interactive install $SUSE_DEPS
elif command -v xbps-install >/dev/null; then
echo "Installing packages with xbps..."
2023-09-07 14:23:57 -04:00
VOID_DEPS="steam jq zenity flatpak unzip bash fuse git rsync whiptail"
Merge from early - CloudSync 2.0, Pegasus, Darwin support (#886) * add json for apotris. this PR adds the needed json for accessing Apotris. * fix pcsx2 cloud * decky functions + Customization moved inside every emulator _init * Decky_setClourd * arSnes var * last touch * test * Darwin wip * darwin wip * old EmuAI * SRM * RA + SRM + ESDE * Moving more if darwin to override.sh * Moving more if darwin to override.sh * installToolAI + darwin ifs cleanups, more overrides :) * fi fix * fixed SRM parsers with ,, * fix rm dmg * RA flatpak first * darwin install * darwin fixes * darwinnnn * jsonjson * darwin srm * fix launchers * SRM env vars moved to a function + override to darwin * ares out for now * fix flycast broking everything * dont check if.cef-enable-remote-debugging * better zenity * fix watcher * zenity fix * cloudSync provider detection * fixed paths fix * darwin fixed paths * fixed paths fix * enable cloudsync * no appinit * last minute fixes * weird fixes * hash fix? * this needs a proper cleanup... * fixed? * back to linkToSaveFolder for now * better duplicate detection * parser disabled * cloudSync final touches * darwin installation * improvements * customSRM * Revert "customSRM" This reverts commit 2787d2282c367801c13ee671f3fab9d198f05fb7. * first batch * second batch * SGBC + Jaguar parsers * Pegasus settings and functions * proper order * Path fixed * install on setup * SRM parser * icon * early beta * chimeraOS improvements # Conflicts: # setup.sh * cosmetic * helpers: Fix FlatPak installed check (#875) * chimeraOS retroarch * clear console * Steam installation * fix shellcheck * path fixes * fix SRM * = * Steam-ROM-Manager * srm new path fix * SRM_IsInstalled * cloudsync wtf * SRM_IsInstalled * Steam ROM Manager proper name * ROM * srm stuff * SRM_migration * icon * fix savedownload * launchers * srm icon * ROM * ummm * fixes installToolAI * ESDE Migration * RetroArch_setConfigOverride fix * fix RA * fix PCSX2QT * back to flatpaks * EmuDecky no internet message * noInternet EmuDecky * pegasus theme installer * pegasus launchers * Pegasus install Darwin * Pegasus install Darwin * Init pegasus * ESDE Theme * = * > * override getEmuInstallStatus --------- Co-authored-by: Glazed_Belmont <48196637+GlaZedBelmont@users.noreply.github.com>
2023-10-10 16:20:54 -04:00
2023-07-22 13:11:34 -04:00
sudo xbps-install -Syu
sudo xbps-install -Sy $VOID_DEPS
else
log_err "Your Linux distro $linuxID is not supported by this script. We invite to open a PR or help us with adding your OS to this script. https://github.com/dragoonDorise/EmuDeck/issues"
2023-06-03 20:35:47 -04:00
exit 1
fi
Merge from early - CloudSync 2.0, Pegasus, Darwin support (#886) * add json for apotris. this PR adds the needed json for accessing Apotris. * fix pcsx2 cloud * decky functions + Customization moved inside every emulator _init * Decky_setClourd * arSnes var * last touch * test * Darwin wip * darwin wip * old EmuAI * SRM * RA + SRM + ESDE * Moving more if darwin to override.sh * Moving more if darwin to override.sh * installToolAI + darwin ifs cleanups, more overrides :) * fi fix * fixed SRM parsers with ,, * fix rm dmg * RA flatpak first * darwin install * darwin fixes * darwinnnn * jsonjson * darwin srm * fix launchers * SRM env vars moved to a function + override to darwin * ares out for now * fix flycast broking everything * dont check if.cef-enable-remote-debugging * better zenity * fix watcher * zenity fix * cloudSync provider detection * fixed paths fix * darwin fixed paths * fixed paths fix * enable cloudsync * no appinit * last minute fixes * weird fixes * hash fix? * this needs a proper cleanup... * fixed? * back to linkToSaveFolder for now * better duplicate detection * parser disabled * cloudSync final touches * darwin installation * improvements * customSRM * Revert "customSRM" This reverts commit 2787d2282c367801c13ee671f3fab9d198f05fb7. * first batch * second batch * SGBC + Jaguar parsers * Pegasus settings and functions * proper order * Path fixed * install on setup * SRM parser * icon * early beta * chimeraOS improvements # Conflicts: # setup.sh * cosmetic * helpers: Fix FlatPak installed check (#875) * chimeraOS retroarch * clear console * Steam installation * fix shellcheck * path fixes * fix SRM * = * Steam-ROM-Manager * srm new path fix * SRM_IsInstalled * cloudsync wtf * SRM_IsInstalled * Steam ROM Manager proper name * ROM * srm stuff * SRM_migration * icon * fix savedownload * launchers * srm icon * ROM * ummm * fixes installToolAI * ESDE Migration * RetroArch_setConfigOverride fix * fix RA * fix PCSX2QT * back to flatpaks * EmuDecky no internet message * noInternet EmuDecky * pegasus theme installer * pegasus launchers * Pegasus install Darwin * Pegasus install Darwin * Init pegasus * ESDE Theme * = * > * override getEmuInstallStatus --------- Co-authored-by: Glazed_Belmont <48196637+GlaZedBelmont@users.noreply.github.com>
2023-10-10 16:20:54 -04:00
2023-06-03 20:35:47 -04:00
# this could be replaced to immediately start the EmuDeck setup script
Merge from early - CloudSync 2.0, Pegasus, Darwin support (#886) * add json for apotris. this PR adds the needed json for accessing Apotris. * fix pcsx2 cloud * decky functions + Customization moved inside every emulator _init * Decky_setClourd * arSnes var * last touch * test * Darwin wip * darwin wip * old EmuAI * SRM * RA + SRM + ESDE * Moving more if darwin to override.sh * Moving more if darwin to override.sh * installToolAI + darwin ifs cleanups, more overrides :) * fi fix * fixed SRM parsers with ,, * fix rm dmg * RA flatpak first * darwin install * darwin fixes * darwinnnn * jsonjson * darwin srm * fix launchers * SRM env vars moved to a function + override to darwin * ares out for now * fix flycast broking everything * dont check if.cef-enable-remote-debugging * better zenity * fix watcher * zenity fix * cloudSync provider detection * fixed paths fix * darwin fixed paths * fixed paths fix * enable cloudsync * no appinit * last minute fixes * weird fixes * hash fix? * this needs a proper cleanup... * fixed? * back to linkToSaveFolder for now * better duplicate detection * parser disabled * cloudSync final touches * darwin installation * improvements * customSRM * Revert "customSRM" This reverts commit 2787d2282c367801c13ee671f3fab9d198f05fb7. * first batch * second batch * SGBC + Jaguar parsers * Pegasus settings and functions * proper order * Path fixed * install on setup * SRM parser * icon * early beta * chimeraOS improvements # Conflicts: # setup.sh * cosmetic * helpers: Fix FlatPak installed check (#875) * chimeraOS retroarch * clear console * Steam installation * fix shellcheck * path fixes * fix SRM * = * Steam-ROM-Manager * srm new path fix * SRM_IsInstalled * cloudsync wtf * SRM_IsInstalled * Steam ROM Manager proper name * ROM * srm stuff * SRM_migration * icon * fix savedownload * launchers * srm icon * ROM * ummm * fixes installToolAI * ESDE Migration * RetroArch_setConfigOverride fix * fix RA * fix PCSX2QT * back to flatpaks * EmuDecky no internet message * noInternet EmuDecky * pegasus theme installer * pegasus launchers * Pegasus install Darwin * Pegasus install Darwin * Init pegasus * ESDE Theme * = * > * override getEmuInstallStatus --------- Co-authored-by: Glazed_Belmont <48196637+GlaZedBelmont@users.noreply.github.com>
2023-10-10 16:20:54 -04:00
2023-06-03 20:35:47 -04:00
echo "All prerequisite packages have been installed. EmuDeck will be installed now!"
fi
set -eo pipefail
report_error() {
FAILURE="$(caller): ${BASH_COMMAND}"
echo "Something went wrong!"
echo "Error at ${FAILURE}"
}
trap report_error ERR
2024-03-07 15:27:56 -05:00
EMUDECK_GITHUB_URL="https://api.github.com/repos/EmuDeck/emudeck-electron/releases/latest"
EMUDECK_URL="$(curl -s ${EMUDECK_GITHUB_URL} | grep -E 'browser_download_url.*AppImage' | cut -d '"' -f 4)"
mkdir -p ~/Applications
curl -L "${EMUDECK_URL}" -o ~/Applications/EmuDeck.AppImage 2>&1 | stdbuf -oL tr '\r' '\n' | sed -u 's/^ *\([0-9][0-9]*\).*\( [0-9].*$\)/\1\n#Download Speed\:\2/' | zenity --progress --title "Downloading EmuDeck" --width 600 --auto-close --no-cancel 2>/dev/null
chmod +x ~/Applications/EmuDeck.AppImage
2024-04-28 17:15:06 -04:00
~/Applications/EmuDeck.AppImage$sandbox
2024-03-08 05:04:30 -05:00
exit