Skip to content

Instantly share code, notes, and snippets.

@abnrk
Created January 24, 2026 21:46
Show Gist options
  • Select an option

  • Save abnrk/d7d7fa94c6b2d03cfbc57fa9182a2fa3 to your computer and use it in GitHub Desktop.

Select an option

Save abnrk/d7d7fa94c6b2d03cfbc57fa9182a2fa3 to your computer and use it in GitHub Desktop.
@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