topgrade isn't mature yet

This commit is contained in:
Mylloon 2023-11-05 15:06:25 +01:00
parent 385a044d33
commit da6bed6450
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 15 additions and 12 deletions

View file

@ -18,5 +18,8 @@ winget upgrade -h --all
PowerShell -Command "Set-ExecutionPolicy Bypass -Scope Process;" ^
"Get-WindowsUpdate -AcceptAll -Install"
:: Global update
:: "%ProgramFiles%\Topgrade\topgrade.exe"
PAUSE
EXIT /B

View file

@ -247,18 +247,18 @@ PowerShell -Command "Invoke-WebRequest -Uri https://github.com/X9VoiD/VoiDPlugin
PowerShell -Command "Expand-Archive -Path '%TEMP%\WindowsInk.zip' -DestinationPath '%LOCALAPPDATA%\OpenTabletDriver\Plugins\Windows Ink'"
:: === Install Topgrade ==
ECHO Topgrade...
PowerShell -Command "" ^
"$repo = 'topgrade-rs/topgrade';" ^
"$releases = \"https://api.github.com/repos/$repo/releases\";" ^
"$tag = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].tag_name;" ^
"$file = \"topgrade-$tag-x86_64-pc-windows-msvc.zip\";" ^
"$link = \"https://github.com/$repo/releases/download/$tag/$file\";" ^
"$archive = 'topgrade.zip';" ^
"$outfile = Join-Path -Path $env:TEMP -ChildPath $archive;" ^
"Invoke-WebRequest -Uri $link -OutFile $outfile;" ^
"cd $env:TEMP;" ^
"Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\Topgrade'"
:: ECHO Topgrade...
:: PowerShell -Command "" ^
:: "$repo = 'topgrade-rs/topgrade';" ^
:: "$releases = \"https://api.github.com/repos/$repo/releases\";" ^
:: "$tag = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].tag_name;" ^
:: "$file = \"topgrade-$tag-x86_64-pc-windows-msvc.zip\";" ^
:: "$link = \"https://github.com/$repo/releases/download/$tag/$file\";" ^
:: "$archive = 'topgrade.zip';" ^
:: "$outfile = Join-Path -Path $env:TEMP -ChildPath $archive;" ^
:: "Invoke-WebRequest -Uri $link -OutFile $outfile;" ^
:: "cd $env:TEMP;" ^
:: "Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\Topgrade'"
:: === Miscellaneous ==
:: Rename shortcut for Minecraft