Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

version-fmt

version-fmt read, format and save versions results. It creates/updates a version index file with the Ziglang format. The program is written in Go.

Usage

The program fetches a GitHub release's assets from lightpanda-io/browser, formats them as a manifest entry and merges it into the index file. The updated index is written to stdout.

version-fmt -release nightly -version 1.2.3-nightly.1456+a1b2c3d index.json

Command line options

  • -release release tag (default nightly)
  • -version version string from lightpanda version

The positional argument is the index file to read and update.

The result is keyed by release tag. Each entry holds the version, the build date (taken from the asset created_at) and one object per platform (download_url, shasum, size).

Previous nightly versions

The nightly entry also holds a last list. It keeps the 5 previous version strings, newest first. On each run the replaced version moves to the head of the list and the oldest one leaks out.

{
  "nightly": {
    "version": "1.0.0-nightly.9290+fffffffff",
    "date": "2026-09-09",
    "last": [
      "1.0.0-nightly.9289+6efc35cfe",
      "1.0.0-nightly.9288+aaaaaaaaa"
    ]
  }
}

A version never appears twice in the list. Other release tags have no last list.

Docker

Each version of version-fmt is bundled in a docker image available on GH registry.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages