diff --git a/windows/installers/outerwilds-modmanager.bat b/windows/installers/outerwilds-modmanager.bat index 83904cc..21c5657 100644 --- a/windows/installers/outerwilds-modmanager.bat +++ b/windows/installers/outerwilds-modmanager.bat @@ -12,7 +12,8 @@ ECHO Outer Wilds Mod Manager... PowerShell -Command "" ^ "$repo = 'ow-mods/ow-mod-man';" ^ "$releases = \"https://api.github.com/repos/$repo/releases/latest\";" ^ - "$link = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].assets.browser_download_url[7];" ^ + "$assets = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].assets;" ^ + "$link = ($assets | Where-Object { $_.name -like '*_x64_en-US.msi' }).browser_download_url;" ^ "$exe = 'Outer.Wilds.Mod.Manager-setup.msi';" ^ "$outFile = Join-Path -Path $env:TEMP -ChildPath $exe;" ^ "Invoke-WebRequest -Uri $link -OutFile $outFile;" ^