xournal++ installation works from winget
This commit is contained in:
parent
5d47ece659
commit
c3aa81ddcc
1 changed files with 0 additions and 21 deletions
|
@ -299,27 +299,6 @@ PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/installers/deceive.ba
|
|||
CMD /c "%TEMP%\deceive.bat" yes
|
||||
|
||||
|
||||
:: === Xournal++ ==
|
||||
:: TODO: Winget report an incorrect hash on installation,
|
||||
:: that's why we're installing it manually
|
||||
@REM ECHO Xournal++...
|
||||
@REM PowerShell -Command "" ^
|
||||
@REM "$repo = 'xournalpp/xournalpp';" ^
|
||||
@REM "$releases = \"https://api.github.com/repos/$repo/releases\";" ^
|
||||
@REM "$tag = (Invoke-WebRequest $releases | ConvertFrom-Json)[1].tag_name;" ^
|
||||
@REM "$file = \"xournalpp-$($tag.substring(1))-windows.zip\";" ^
|
||||
@REM "$link = \"https://github.com/$repo/releases/download/$tag/$file\";" ^
|
||||
@REM "$archive = 'xournalpp.zip';" ^
|
||||
@REM "$outfile = Join-Path -Path $env:TEMP -ChildPath $archive;" ^
|
||||
@REM "Invoke-WebRequest -Uri $link -OutFile $outfile;" ^
|
||||
@REM "cd $env:TEMP;" ^
|
||||
@REM "Expand-Archive -Path $archive -DestinationPath $env:TEMP -Force;" ^
|
||||
@REM "$exe = $env:TEMP + '\' + $file.Substring(0, $file.Length - 3) + 'exe';" ^
|
||||
@REM "Start-Process $exe /S;" ^
|
||||
@REM "Remove-Item -Force $outfile;" ^
|
||||
@REM "Remove-Item -Force $exe"
|
||||
|
||||
|
||||
:: === Minecraft ==
|
||||
:: Copy shortcut of Prism Launcher to a Minecraft shortcut
|
||||
COPY /Y "!startmenu!\Prism Launcher.lnk" "!startmenu!\Minecraft.lnk"
|
||||
|
|
Loading…
Reference in a new issue