From 1f3c9324a8e88c0d368666eac4c73a961b4ad73b Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 5 Nov 2023 22:39:30 +0100 Subject: [PATCH] xournalpp, can be useful? --- windows11.bat | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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