Skip to content

Commit

Permalink
Fixed github API not working (curl needs -L parameter)
Browse files Browse the repository at this point in the history
  • Loading branch information
adolfintel committed Feb 1, 2025
1 parent c2deae3 commit 0043710
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dxvk-nvapi/fallback.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ echo 1 > state
echo "Downloading dxvk-nvapi (stable build)"
rm -rf build
touch incomplete
url=$(curl --silent "https://api.github.com/repos/jp7677/dxvk-nvapi/releases/latest" | grep '"browser_download_url"' | grep '.tar.gz"' | head -n 1 | sed -E 's/.*"([^"]+)".*/\1/')
url=$(curl -L --silent "https://api.github.com/repos/jp7677/dxvk-nvapi/releases/latest" | grep '"browser_download_url"' | grep '.tar.gz"' | head -n 1 | sed -E 's/.*"([^"]+)".*/\1/')
wget -O dxvk-nvapi.tar.gz "$url"
mkdir build
tar -xf dxvk-nvapi.tar.gz --directory build
Expand Down
2 changes: 1 addition & 1 deletion dxvk/fallback.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ echo 1 > state
echo "Downloading dxvk (stable build)"
rm -rf build
touch incomplete
url=$(curl --silent "https://api.github.com/repos/doitsujin/dxvk/releases/latest" | grep '"browser_download_url"' | grep '.tar.gz"' | head -n 1 | sed -E 's/.*"([^"]+)".*/\1/')
url=$(curl -L --silent "https://api.github.com/repos/doitsujin/dxvk/releases/latest" | grep '"browser_download_url"' | grep '.tar.gz"' | head -n 1 | sed -E 's/.*"([^"]+)".*/\1/')
wget -O dxvk.tar.gz "$url"
mkdir build
tar -xf dxvk.tar.gz --directory build
Expand Down
4 changes: 2 additions & 2 deletions msi/1-fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if [ ! -d build ]; then
fi
cd build
echo "Downloading winemono"
url=$(curl --silent "https://api.github.com/repos/madewokherd/wine-mono/releases/latest" | grep '"browser_download_url"' | grep '.msi"' | sed -E 's/.*"([^"]+)".*/\1/')
url=$(curl -L --silent "https://api.github.com/repos/madewokherd/wine-mono/releases/latest" | grep '"browser_download_url"' | grep '.msi"' | sed -E 's/.*"([^"]+)".*/\1/')
mustDownload=0
if [ -f ../winemono_version ]; then
if [ "$(cat ../winemono_version)" != "$url" ]; then
Expand All @@ -24,7 +24,7 @@ if [ $mustDownload -eq 1 ]; then
echo "$url" > ../winemono_version
fi
echo "Downloading winegecko"
ver=$(curl --silent "https://dl.winehq.org/wine/wine-gecko/?C=M;O=D" | grep "indexcolicon" | sed 1,2d | grep -io '<a href=['"'"'"][^"'"'"']*['"'"'"]' | sed -e 's/^<a href=["'"'"']//i' -e 's/["'"'"']$//i' | head -n 1 | sed -e 's#/$##' -e 's/\.git$//' -e 's#^.*/##')
ver=$(curl -L --silent "https://dl.winehq.org/wine/wine-gecko/?C=M;O=D" | grep "indexcolicon" | sed 1,2d | grep -io '<a href=['"'"'"][^"'"'"']*['"'"'"]' | sed -e 's/^<a href=["'"'"']//i' -e 's/["'"'"']$//i' | head -n 1 | sed -e 's#/$##' -e 's/\.git$//' -e 's#^.*/##')
mustDownload=0
if [ -f ../winegecko_version ]; then
if [ "$(cat ../winegecko_version)" != "$ver" ]; then
Expand Down
2 changes: 1 addition & 1 deletion vkd3d/fallback.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ echo 1 > state
echo "Downloading vkd3d-proton (stable build)"
rm -rf build
touch incomplete
url=$(curl --silent "https://api.github.com/repos/HansKristian-Work/vkd3d-proton/releases/latest" | grep '"browser_download_url"' | grep '.tar.zst"' | head -n 1 | sed -E 's/.*"([^"]+)".*/\1/')
url=$(curl -L --silent "https://api.github.com/repos/HansKristian-Work/vkd3d-proton/releases/latest" | grep '"browser_download_url"' | grep '.tar.zst"' | head -n 1 | sed -E 's/.*"([^"]+)".*/\1/')
wget -O vkd3d.tar.zst "$url"
mkdir build
tar -xf vkd3d.tar.zst --directory build
Expand Down

0 comments on commit 0043710

Please # to comment.