Created
January 24, 2026 21:46
-
-
Save abnrk/d7d7fa94c6b2d03cfbc57fa9182a2fa3 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 | |
| set ASSET=1 | |
| set VERSION_TXT=0 | |
| set /p VERSION_TXT=<version.txt | |
| curl -H "Authorization: %GITHUB_TOKEN%" -o latest.json https://api.github.com/repos/Hibbiki/chromium-win64/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