topgrade isn't mature yet
This commit is contained in:
parent
385a044d33
commit
da6bed6450
2 changed files with 15 additions and 12 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue