Skip to content

Commit

Permalink
Fix EmuDecky installation (dragoonDorise#977)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kardbord authored Jan 30, 2024
1 parent 7bd5c10 commit 1d06147
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions functions/ToolScripts/emuDeckPlugins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,19 @@ Plugins_installPowerTools(){
}

Plugins_installDeckyControls(){
local destinationFolder="$HOME/homebrew/plugins/emudeck-decky-controls"
local DeckyControls_releaseURL="$(getLatestReleaseURLGH "EmuDeck/emudeck-decky-controls" ".zip")"
# The emudeck-decky-controls plugin is superseded by EmuDecky.
# Remove old emudeck-decky-controls installations to prevent
# duplicate plugins with different names.
sudo rm -rf "$HOME/homebrew/plugins/emudeck-decky-controls"

local DeckyControls_releaseURL="$(getLatestReleaseURLGH "EmuDeck/EmuDecky" ".zip")"
local destinationArchive="$HOME/homebrew/plugins/EmuDecky.zip"
sudo curl -L "$DeckyControls_releaseURL" -o "$destinationArchive"
local destinationFolder="$HOME/homebrew/plugins/$(zipinfo -1 $destinationArchive | head -1)"
sudo rm -rf $destinationFolder
#sudo mkdir -p $destinationFolder
sudo curl -L "$DeckyControls_releaseURL" -o "$HOME/homebrew/plugins/emudeck-decky-controls.zip"
sudo unzip "$HOME/homebrew/plugins/emudeck-decky-controls.zip" -d "$HOME/homebrew/plugins/" && sudo rm "$HOME/homebrew/plugins/emudeck-decky-controls.zip"
sudo chown $USER:$USER -R $HOME/homebrew/plugins/emudeck-decky-controls
chmod 555 -R $HOME/homebrew/plugins/emudeck-decky-controls
sudo unzip "$destinationArchive" -d "$HOME/homebrew/plugins/" && sudo rm "$destinationArchive"
sudo chown $USER:$USER -R "$destinationFolder"
chmod 555 "$destinationFolder"
}

Plugins_installSteamDeckGyroDSU(){
Expand Down

0 comments on commit 1d06147

Please sign in to comment.