Skip to content

Commit

Permalink
epic-games-launcher: Use head and properly parse query params (#1292)
Browse files Browse the repository at this point in the history
  • Loading branch information
brian6932 authored Dec 16, 2024
1 parent 3226a1c commit 734465a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions bucket/epic-games-launcher.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@
"url": "https://scoop.sh",
"useragent": "$app/$version",
"script": [
"$redirUrl = [System.Net.HttpWebRequest]::Create(",
"'https://launcher-public-service-prod06.ol.epicgames.com/launcher/api/installer/download/EpicGamesLauncherInstaller.msi'",
").GetResponse().ResponseUri.AbsoluteUri;",
"return $redirUrl"
"$redirUrl = [Net.HttpWebRequest]::Create('https://launcher-public-service-prod06.ol.epicgames.com/launcher/api/installer/download/EpicGamesLauncherInstaller.msi')",
"$redirUrl.method = 'head'",
"[Web.HttpUtility]::ParseQueryString($redirUrl.GetResponse().ResponseUri.Query).Get('launcherfilename')"
],
"regex": "EpicInstaller-([\\d.]+).msi"
"regex": "\\AEpicInstaller-([\\d.]+)\\.msi\\Z"
},
"autoupdate": {
"url": "https://epicgames-download1.akamaized.net/Builds/UnrealEngineLauncher/Installers/Win32/EpicInstaller-$version.msi#/setup.msi_"
Expand Down

0 comments on commit 734465a

Please sign in to comment.