better ifnding of the correct exe
This commit is contained in:
parent
f498635760
commit
7a0cf5c2cd
1 changed files with 2 additions and 1 deletions
|
@ -12,7 +12,8 @@ ECHO Outer Wilds Mod Manager...
|
||||||
PowerShell -Command "" ^
|
PowerShell -Command "" ^
|
||||||
"$repo = 'ow-mods/ow-mod-man';" ^
|
"$repo = 'ow-mods/ow-mod-man';" ^
|
||||||
"$releases = \"https://api.github.com/repos/$repo/releases/latest\";" ^
|
"$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';" ^
|
"$exe = 'Outer.Wilds.Mod.Manager-setup.msi';" ^
|
||||||
"$outFile = Join-Path -Path $env:TEMP -ChildPath $exe;" ^
|
"$outFile = Join-Path -Path $env:TEMP -ChildPath $exe;" ^
|
||||||
"Invoke-WebRequest -Uri $link -OutFile $outFile;" ^
|
"Invoke-WebRequest -Uri $link -OutFile $outFile;" ^
|
||||||
|
|
Loading…
Reference in a new issue