From 7a0cf5c2cdaed4e06633822dd07f00eabb069236 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 12 Sep 2024 21:29:43 +0200 Subject: [PATCH] better ifnding of the correct exe --- windows/installers/outerwilds-modmanager.bat | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;" ^