Created
January 18, 2026 22:37
-
-
Save abnrk/ed1d91cb576d8648b5c1f9a3e09ddda9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| rem 0 = arm64 | |
| rem 1 = x64 | |
| rem 2 = x86 | |
| set ARCH=1 | |
| set /a ASSET=%ARCH% | |
| set VERSION_TXT=0 | |
| set /p VERSION_TXT=<version.txt | |
| curl -H "Authorization: %GITHUB_TOKEN%" -o latest.json https://api.github.com/repos/ungoogled-software/ungoogled-chromium-windows/releases/latest | |
| for /f "tokens=*" %%g in ('jq -r .[\"tag_name\"] latest.json') do (set VERSION=%%g) | |
| for /f "tokens=*" %%g in ('jq -r .[\"assets\"][%ASSET%][\"browser_download_url\"] latest.json') do (set DOWNLOAD_URL=%%g) | |
| echo %VERSION% > version.txt | |
| if %VERSION% neq %VERSION_TXT% ( | |
| curl -o "%TEMP%\chromium-installer.exe" -L %DOWNLOAD_URL% | |
| start "" "%TEMP%\chromium-installer.exe" | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment