xournalpp, can be useful?

This commit is contained in:
Mylloon 2023-11-05 22:39:30 +01:00
parent b925c66c23
commit 1f3c9324a8
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -282,6 +282,24 @@ RENAME "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Prism Launcher.lnk" Mine
:: :: Allow system to go in sleep mode when OBS is running :: :: Allow system to go in sleep mode when OBS is running
:: powercfg -requestsoverride process obs64.exe display system awaymode :: powercfg -requestsoverride process obs64.exe display system awaymode
@ECHO OFF
:: :: === Install Xournal++ ==
:: ECHO Xournal++...
:: PowerShell -Command "" ^
:: "$repo = 'xournalpp/xournalpp';" ^
:: "$releases = \"https://api.github.com/repos/$repo/releases\";" ^
:: "$tag = (Invoke-WebRequest $releases | ConvertFrom-Json)[1].tag_name;" ^
:: "$file = \"xournalpp-$($tag.substring(1))-windows.zip \";" ^
:: "$link = \"https://github.com/$repo/releases/download/$tag/$file\";" ^
:: "$archive = 'xournalpp.zip';" ^
:: "$outfile = Join-Path -Path $env:TEMP -ChildPath $archive;" ^
:: "Invoke-WebRequest -Uri $link -OutFile $outfile;" ^
:: "cd $env:TEMP;" ^
:: "Expand-Archive -Path $archive -DestinationPath $env:TEMP -Force;" ^
:: "$exe = $env:TEMP + '\' + $file.Substring(0, $file.Length - 4) + 'exe';" ^
:: "Start-Process $exe /S"
:: Setup WindowsAutoNightMode :: Setup WindowsAutoNightMode
ECHO WindowsAutoNightMode configuration... ECHO WindowsAutoNightMode configuration...
MKDIR %APPDATA%\AutoDarkMode 2>NUL MKDIR %APPDATA%\AutoDarkMode 2>NUL