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;" ^ PowerShell -Command "Set-ExecutionPolicy Bypass -Scope Process;" ^
"Get-WindowsUpdate -AcceptAll -Install" "Get-WindowsUpdate -AcceptAll -Install"
:: Global update
:: "%ProgramFiles%\Topgrade\topgrade.exe"
PAUSE PAUSE
EXIT /B 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'" PowerShell -Command "Expand-Archive -Path '%TEMP%\WindowsInk.zip' -DestinationPath '%LOCALAPPDATA%\OpenTabletDriver\Plugins\Windows Ink'"
:: === Install Topgrade == :: === Install Topgrade ==
ECHO Topgrade... :: ECHO Topgrade...
PowerShell -Command "" ^ :: PowerShell -Command "" ^
"$repo = 'topgrade-rs/topgrade';" ^ :: "$repo = 'topgrade-rs/topgrade';" ^
"$releases = \"https://api.github.com/repos/$repo/releases\";" ^ :: "$releases = \"https://api.github.com/repos/$repo/releases\";" ^
"$tag = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].tag_name;" ^ :: "$tag = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].tag_name;" ^
"$file = \"topgrade-$tag-x86_64-pc-windows-msvc.zip\";" ^ :: "$file = \"topgrade-$tag-x86_64-pc-windows-msvc.zip\";" ^
"$link = \"https://github.com/$repo/releases/download/$tag/$file\";" ^ :: "$link = \"https://github.com/$repo/releases/download/$tag/$file\";" ^
"$archive = 'topgrade.zip';" ^ :: "$archive = 'topgrade.zip';" ^
"$outfile = Join-Path -Path $env:TEMP -ChildPath $archive;" ^ :: "$outfile = Join-Path -Path $env:TEMP -ChildPath $archive;" ^
"Invoke-WebRequest -Uri $link -OutFile $outfile;" ^ :: "Invoke-WebRequest -Uri $link -OutFile $outfile;" ^
"cd $env:TEMP;" ^ :: "cd $env:TEMP;" ^
"Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\Topgrade'" :: "Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\Topgrade'"
:: === Miscellaneous == :: === Miscellaneous ==
:: Rename shortcut for Minecraft :: Rename shortcut for Minecraft