diff --git a/windows11.bat b/windows11.bat index 5b4b117..8c7e516 100644 --- a/windows11.bat +++ b/windows11.bat @@ -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 :: 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 ECHO WindowsAutoNightMode configuration... MKDIR %APPDATA%\AutoDarkMode 2>NUL