diff --git a/.ci/deploy-linux.sh b/.ci/deploy-linux.sh index 3309eb89e..5a1610edd 100755 --- a/.ci/deploy-linux.sh +++ b/.ci/deploy-linux.sh @@ -37,7 +37,7 @@ if [ "$DEPLOY_APPIMAGE" = "true" ]; then # Download translations mkdir -p "./AppDir/usr/translations" - ZIP_URL=$(curl -fsSL "https://api.github.com/repos/RPCS3/rpcs3_translations/releases/latest" \ + ZIP_URL=$(curl -fsSL --retry 3 --retry-delay 60 "https://api.github.com/repos/RPCS3/rpcs3_translations/releases/latest" \ | grep "browser_download_url" \ | grep "RPCS3-languages.zip" \ | cut -d '"' -f 4) @@ -45,7 +45,7 @@ if [ "$DEPLOY_APPIMAGE" = "true" ]; then echo "Failed to find RPCS3-languages.zip in the latest release. Continuing without translations." else echo "Downloading translations from: $ZIP_URL" - curl -L -o translations.zip "$ZIP_URL" || { + curl -fsSL --retry 3 --retry-delay 60 -o translations.zip "$ZIP_URL" || { echo "Failed to download translations.zip. Continuing without translations." exit 0 } diff --git a/.ci/deploy-mac.sh b/.ci/deploy-mac.sh index e72b5c2a3..4125e2379 100755 --- a/.ci/deploy-mac.sh +++ b/.ci/deploy-mac.sh @@ -29,7 +29,7 @@ rm -rf "rpcs3.app/Contents/Frameworks/QtPdf.framework" \ mkdir -p "rpcs3.app/Contents/translations" ZIP_URL="https://github.com/RPCS3/rpcs3_translations/releases/latest/download/RPCS3-languages.zip" echo "Downloading translations from: $ZIP_URL" -if curl -fsSL "$ZIP_URL" -o "translations.zip"; then +if curl -fsSL --retry 3 --retry-delay 60 "$ZIP_URL" -o "translations.zip"; then echo "Successfully downloaded translations." if unzip -o translations.zip -d "rpcs3.app/Contents/translations" >/dev/null 2>&1; then rm -f translations.zip diff --git a/.ci/deploy-windows-clang.sh b/.ci/deploy-windows-clang.sh index 04ba1bb20..38a80d53c 100644 --- a/.ci/deploy-windows-clang.sh +++ b/.ci/deploy-windows-clang.sh @@ -28,7 +28,7 @@ curl -fsSL 'https://api.rpcs3.net/config/?api=v1' | iconv -f ISO-8859-1 -t UTF-8 # Download translations mkdir -p ./bin/share/qt6/translations -ZIP_URL=$(curl -fsSL "https://api.github.com/repos/RPCS3/rpcs3_translations/releases/latest" \ +ZIP_URL=$(curl -fsSL --retry 3 --retry-delay 60 "https://api.github.com/repos/RPCS3/rpcs3_translations/releases/latest" \ | grep "browser_download_url" \ | grep "RPCS3-languages.zip" \ | cut -d '"' -f 4) @@ -36,7 +36,7 @@ if [ -z "$ZIP_URL" ]; then echo "Failed to find RPCS3-languages.zip in the latest release. Continuing without translations." else echo "Downloading translations from: $ZIP_URL" - curl -L -o translations.zip "$ZIP_URL" || { + curl -fsSL --retry 3 --retry-delay 60 -o translations.zip "$ZIP_URL" || { echo "Failed to download translations.zip. Continuing without translations." exit 0 } diff --git a/.ci/deploy-windows.sh b/.ci/deploy-windows.sh index 3c59391a6..80cbe005e 100755 --- a/.ci/deploy-windows.sh +++ b/.ci/deploy-windows.sh @@ -18,7 +18,7 @@ curl -fsSL 'https://api.rpcs3.net/config/?api=v1' | iconv -t UTF-8 1> ./bin/GuiC # Download translations mkdir -p ./bin/qt6/translations -ZIP_URL=$(curl -fsSL "https://api.github.com/repos/RPCS3/rpcs3_translations/releases/latest" \ +ZIP_URL=$(curl -fsSL --retry 3 --retry-delay 60 "https://api.github.com/repos/RPCS3/rpcs3_translations/releases/latest" \ | grep "browser_download_url" \ | grep "RPCS3-languages.zip" \ | cut -d '"' -f 4) @@ -26,7 +26,7 @@ if [ -z "$ZIP_URL" ]; then echo "Failed to find RPCS3-languages.zip in the latest release. Continuing without translations." else echo "Downloading translations from: $ZIP_URL" - curl -L -o translations.zip "$ZIP_URL" || { + curl -fsSL --retry 3 --retry-delay 60 -o translations.zip "$ZIP_URL" || { echo "Failed to download translations.zip. Continuing without translations." exit 0 }