Skip to content

xlsft/zinc

Repository files navigation

@xlsft/zinc

A Chrome version manager written in Go.

It downloads standalone Chrome for Testing builds into ~/.zinc/cache and runs them without touching the system installation.

Supported platforms

  • macOS Intel (darwin/amd64)
  • macOS Apple Silicon (darwin/arm64)
  • Linux x64 (linux/amd64)
  • Windows x64 (windows/amd64)

Quick install

curl -fsSL https://raw.githubusercontent.com/xlsft/zinc/main/install.sh | bash

The binary is installed into ~/.local/bin by default. To use a different directory:

curl -fsSL https://raw.githubusercontent.com/xlsft/zinc/main/install.sh | INSTALL_DIR=/usr/local/bin bash

install.sh downloads Go automatically if it is missing or too old, builds zinc for your platform, and installs less if it is not present (needed for paged zinc list).

Build from source

git clone https://github.com/xlsft/zinc.git
cd zinc
go build -o zinc .

Usage

zinc install <version>        # download Chrome into the cache
zinc run <version> [args...]  # download if needed and run
zinc list [prefix]            # list installable versions
zinc cache list               # list downloaded versions
zinc cache prune              # remove everything from the cache
zinc -v, zinc --version       # print zinc version

Version format

  • latest — the newest available version.
  • 149.0.7827.196 — exact version.
  • 115 — the latest version starting with 115.

zinc list prints versions from newest to oldest and pipes the output through less when available.

Examples

zinc install latest
zinc install 149.0.7827.196
zinc install 115

zinc run 115 --version
zinc run latest https://example.com

Cache

  • Downloaded Chrome versions live in ~/.zinc/cache/<version>/.
  • The installable versions list is cached in ~/.zinc/versions.json for 1 hour.
  • Pressing Ctrl+C (SIGINT) terminates the running Chrome process, but the cached files are kept.

About

A Chrome version manager written in Go

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors