topgrade now in winget

This commit is contained in:
Mylloon 2024-02-06 01:44:09 +01:00
parent 14266cfb2b
commit 66ec65e250
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -302,23 +302,6 @@ PowerShell -Command "" ^
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\Deceive" /f /v DisplayName /t REG_SZ /d "Deceive"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\Deceive" /f /v InstallLocation /t REG_SZ /d "%LOCALAPPDATA%\Deceive"
:: :: 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' -Force;" ^
:: "Remove-Item -Force $outfile"
:: REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\Topgrade" /f /v DisplayName /t REG_SZ /d "Topgrade"
:: REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\Topgrade" /f /v InstallLocation /t REG_SZ /d "%ProgramFiles%\Topgrade"
:: :: Install Xournal++
:: ECHO Xournal++...
:: PowerShell -Command "" ^