Make your releases installable

Name your release files so the install script finds the right one, and add the commands to your README.

You set up nothing on installer.dev. A public GitHub release with one file per platform is all the script needs, and the release layouts that GoReleaser, cargo-dist and most CI templates produce already work.

Name the files after OS and CPU

Put the OS and the CPU into each file name, separated by -, _ or .:

tool_1.4.0_linux_amd64.tar.gz
tool_1.4.0_linux_arm64.tar.gz
tool_1.4.0_darwin_arm64.tar.gz
tool_1.4.0_darwin_amd64.tar.gz
tool_1.4.0_windows_amd64.zip
checksums.txt

The script recognizes these words, in any capitalization:

Meaning Words
Linux linux
macOS darwin, macos, osx, mac, apple-darwin
Windows windows, win, pc-windows-msvc
x86_64 amd64, x86_64, x64, 64bit, and linux64 or win64
ARM64 arm64, aarch64
32-bit x86 386, i386, i686, x86, 32bit
ARMv7 and ARMv6 armv7, armhf, armv6, arm
Other CPUs riscv64, ppc64le, s390x, loong64, mips64le
Both Mac CPUs universal, all
C library musl, gnu

FreeBSD, NetBSD and OpenBSD work the same way, with their names as the OS word.

Ship archives or plain binaries

On Linux and macOS, .tar.gz is the safest choice. .tar.xz, .tar.bz2 and .tar.zst work when the machine has the decompressor, .zip when it has unzip. On Windows, ship .zip or a plain .exe.

Inside an archive, the script looks for executables up to three directories deep: ELF and Mach-O files on Linux and macOS, .exe files on Windows. Every executable becomes a command, named after its file. Shell scripts with a shebang count only when the archive holds no binary. Keep the binary’s name stable across releases, because it is the command your users type.

A plain binary named tool_linux_amd64 becomes the command tool. The script cuts the name before the first OS, CPU or version word.

Publish checksums

GitHub computes a SHA-256 digest for every file uploaded since mid-2025, and the script checks it automatically. For older releases, or as a second source, publish a checksum file in sha256sum format:

3b6c1a...  tool_1.4.0_linux_amd64.tar.gz

The script recognizes checksums.txt, SHA256SUMS, sha256sum.txt and similar names, and per-file sums named FILE.sha256.

Keep the file picker on the right file

  • Ship one build per OS and CPU. If you ship variants, name them after the repository plus one extra word (tool-full_...). The plain build wins.
  • Debug builds, symbol files and installers (.deb, .rpm, .msi, .pkg, .dmg) are ignored, so they can sit in the same release.
  • Pre-releases and drafts are never the latest release. Users can still install one with ?version=TAG.

Test your release

Run the verbose script on each platform. It prints every candidate file with its score, the file it picked and why:

Shell
curl -fsSL https://installer.dev/OWNER/REPO/linux/verbose | sh

Add the commands to your README

Your repository’s page, https://installer.dev/OWNER/REPO, has a README section to copy, a badge builder and a command builder for pinned versions and other settings. The section looks like this:

Markdown
## Install

**Linux**

```sh
curl -fsSL https://installer.dev/OWNER/REPO/linux | sh
```

**macOS**

```sh
curl -fsSL https://installer.dev/OWNER/REPO/macos | sh
```

**Windows** (PowerShell)

```powershell
irm https://installer.dev/OWNER/REPO/windows | iex
```

The badge shows the install count and links to the page:

Markdown
[![installs](https://installer.dev/OWNER/REPO/badge.svg)](https://installer.dev/OWNER/REPO)

The badge takes a style, colors, a platform and a time window. See Stats API and badges for every parameter.