diff options
| author | Party Wumpus <48649272+PartyWumpus@users.noreply.github.com> | 2023-01-08 21:16:44 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-08 13:16:44 -0800 |
| commit | e92b66068aaa3f43e65e187e09f0982c798e960a (patch) | |
| tree | ae7a68b225495db35ce6b20927f4a79beab56ded /dist | |
| parent | b72b32761058767d143e9ff08dc238c5ac9b777c (diff) | |
| download | decky-loader-e92b66068aaa3f43e65e187e09f0982c798e960a.tar.gz decky-loader-e92b66068aaa3f43e65e187e09f0982c798e960a.zip | |
Use the new installer in the readme instructions (#324)
Diffstat (limited to 'dist')
| -rw-r--r-- | dist/install_prerelease.sh | 3 | ||||
| -rw-r--r-- | dist/install_release.sh | 3 | ||||
| -rw-r--r-- | dist/user_install_script.sh | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/dist/install_prerelease.sh b/dist/install_prerelease.sh index 19a8ab04..d38f0d5b 100644 --- a/dist/install_prerelease.sh +++ b/dist/install_prerelease.sh @@ -15,7 +15,8 @@ touch "${USER_DIR}/.steam/steam/.cef-enable-remote-debugging" # Download latest release and install it RELEASE=$(curl -s 'https://api.github.com/repos/SteamDeckHomebrew/decky-loader/releases' | jq -r "first(.[] | select(.prerelease == "true"))") -read VERSION DOWNLOADURL < <(echo $(jq -r '.tag_name, .assets[].browser_download_url' <<< ${RELEASE})) +VERSION=$(jq -r '.tag_name' <<< ${RELEASE} ) +DOWNLOADURL=$(jq -r '.assets[].browser_download_url | select(endswith("PluginLoader"))' <<< ${RELEASE}) printf "Installing version %s...\n" "${VERSION}" curl -L $DOWNLOADURL --output ${HOMEBREW_FOLDER}/services/PluginLoader diff --git a/dist/install_release.sh b/dist/install_release.sh index 36bc3247..57150f2f 100644 --- a/dist/install_release.sh +++ b/dist/install_release.sh @@ -15,7 +15,8 @@ touch "${USER_DIR}/.steam/steam/.cef-enable-remote-debugging" # Download latest release and install it RELEASE=$(curl -s 'https://api.github.com/repos/SteamDeckHomebrew/decky-loader/releases' | jq -r "first(.[] | select(.prerelease == "false"))") -read VERSION DOWNLOADURL < <(echo $(jq -r '.tag_name, .assets[].browser_download_url' <<< ${RELEASE})) +VERSION=$(jq -r '.tag_name' <<< ${RELEASE} ) +DOWNLOADURL=$(jq -r '.assets[].browser_download_url | select(endswith("PluginLoader"))' <<< ${RELEASE}) printf "Installing version %s...\n" "${VERSION}" curl -L $DOWNLOADURL --output ${HOMEBREW_FOLDER}/services/PluginLoader diff --git a/dist/user_install_script.sh b/dist/user_install_script.sh index 34dadd40..21f0f2f4 100644 --- a/dist/user_install_script.sh +++ b/dist/user_install_script.sh @@ -98,7 +98,8 @@ if [ $BRANCH = 'prerelease' ] ; then else RELEASE=$(curl -s 'https://api.github.com/repos/SteamDeckHomebrew/decky-loader/releases' | jq -r "first(.[] | select(.prerelease == "false"))") fi -read VERSION DOWNLOADURL < <(echo $(jq -r '.tag_name, .assets[].browser_download_url' <<< ${RELEASE})) +VERSION=$(jq -r '.tag_name' <<< ${RELEASE} ) +DOWNLOADURL=$(jq -r '.assets[].browser_download_url | select(endswith("PluginLoader"))' <<< ${RELEASE}) echo "45" ; echo "# Installing version $VERSION" ; curl -L $DOWNLOADURL -o ${HOMEBREW_FOLDER}/services/PluginLoader 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 Decky" --text="Download Speed: 0" --width=300 --height=100 --auto-close --no-cancel 2>/dev/null |
