fix(kyber-linux): use correct download URL — zip from api.prod.kyber.gg

Replace guessed CDN URL with the real API endpoint:
  https://api.prod.kyber.gg/download/kyber-installer-win64.zip

The download is a zip, so extract the .exe before passing it to Proton.
Requires unzip (standard on Ubuntu).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D8ckUJQtj1pH8jtAddBDZs
This commit is contained in:
Claude
2026-06-23 21:35:28 +00:00
parent 970d6b1ab2
commit 66eb9f9bef
+17 -21
View File
@@ -89,31 +89,27 @@ echo "Steam home: $STEAM_HOME"
if [ ! -f "$KYBER_INSTALLER" ]; then if [ ! -f "$KYBER_INSTALLER" ]; then
echo "" echo ""
echo "Kyber installer not found at: $KYBER_INSTALLER" echo "Kyber installer not found at: $KYBER_INSTALLER"
echo "Attempting to download KyberLauncher.exe from kyber.gg..." echo "Downloading from kyber.gg API..."
mkdir -p "$(dirname "$KYBER_INSTALLER")" mkdir -p "$(dirname "$KYBER_INSTALLER")"
# Try to find the download link on kyber.gg, then fall back to known URLs. KYBER_ZIP="/tmp/kyber-installer-$$.zip"
echo " Checking kyber.gg for the download link..." KYBER_DL_URL="https://api.prod.kyber.gg/download/kyber-installer-win64.zip"
KYBER_DL_URL="" if curl -L --progress-bar -o "$KYBER_ZIP" "$KYBER_DL_URL" && [ -s "$KYBER_ZIP" ]; then
# Extract the first .exe href from the kyber.gg download page # Extract the installer .exe from the zip
_raw=$(curl -sL --max-time 15 "https://kyber.gg/download" 2>/dev/null || \ _exe=$(unzip -Z1 "$KYBER_ZIP" 2>/dev/null | grep -i '\.exe$' | head -1)
curl -sL --max-time 15 "https://kyber.gg" 2>/dev/null) if [ -z "$_exe" ]; then
if [ -n "$_raw" ]; then echo "ERROR: No .exe found inside the downloaded zip."
KYBER_DL_URL=$(echo "$_raw" | grep -oP 'https?://[^"'\''<>\s]+KyberLauncher\.exe' | head -1) rm -f "$KYBER_ZIP"
fi exit 1
# Known fallback locations (update these if kyber.gg changes hosting) fi
if [ -z "$KYBER_DL_URL" ]; then unzip -p "$KYBER_ZIP" "$_exe" > "$KYBER_INSTALLER"
KYBER_DL_URL="https://cdn.kyber.gg/builds/KyberLauncher.exe" rm -f "$KYBER_ZIP"
fi echo "Extracted: $(basename "$_exe")$KYBER_INSTALLER"
echo " Downloading from: $KYBER_DL_URL"
if curl -L --progress-bar -o "$KYBER_INSTALLER" "$KYBER_DL_URL" \
&& [ -s "$KYBER_INSTALLER" ]; then
echo "Downloaded: $KYBER_INSTALLER"
else else
echo "" echo ""
echo "ERROR: Automatic download failed." echo "ERROR: Download failed."
echo "Download KyberLauncher.exe manually from https://kyber.gg, then:" echo "Download the zip manually from https://kyber.gg, extract the .exe, then:"
echo " $0 /path/to/KyberLauncher.exe" echo " $0 /path/to/KyberLauncher.exe"
rm -f "$KYBER_INSTALLER" rm -f "$KYBER_ZIP"
exit 1 exit 1
fi fi
fi fi