Host the script yourself

Serve a copy of the install script from your own repository, so your users' installs do not depend on installer.dev.

installer.dev generates the script, but the script needs nothing from installer.dev to run. It talks only to api.github.com and the GitHub download host. You can download it once, commit it to your repository and point your README at your copy. Your users then trust your repository alone, and you review every change to the script before it reaches them.

Download the scripts

Linux and macOS share one script. Windows has its own:

Shell
curl -fsSL https://installer.dev/YOUR/REPO/install.sh -o install.sh
curl -fsSL https://installer.dev/YOUR/REPO/install.ps1 -o install.ps1

To offer an uninstall command too, download the uninstall scripts the same way:

Shell
curl -fsSL https://installer.dev/YOUR/REPO/install.sh/uninstall -o uninstall.sh
curl -fsSL https://installer.dev/YOUR/REPO/install.ps1/uninstall -o uninstall.ps1

The script that sh runs breaks when Git converts its line endings on a Windows checkout. Add a .gitattributes file next to the scripts:

*.sh text eol=lf

Serve them from your repository

Commit the scripts. GitHub serves every committed file as plain text from raw.githubusercontent.com, which sh and PowerShell run as they are:

Shell
curl -fsSL https://raw.githubusercontent.com/YOUR/REPO/main/install.sh | sh
PowerShell
irm https://raw.githubusercontent.com/YOUR/REPO/main/install.ps1 | iex

Replace main with your default branch. GitHub Pages or any other static host works the same way, as long as it serves the files over HTTPS.

What changes with your own copy

  • installer.dev does not count these installs. The badge and the install stats show only installs through installer.dev URLs.
  • The script still names installer.dev. Its header, its error messages and its docs links point to installer.dev. The receipt records source=https://installer.dev/YOUR/REPO.
  • Update and uninstall keep working. update.installer.dev and un.installer.dev find installs through their receipts, so they also update and remove the installs of your copy.
  • Fixes reach your users only when you refresh the copy. The Version: line in the script header shows which build of installer.dev generated it.

Keep the copy current

To refresh the copy, download the scripts again and review the diff before you commit:

Shell
curl -fsSL https://installer.dev/YOUR/REPO/install.sh -o install.sh
curl -fsSL https://installer.dev/YOUR/REPO/install.ps1 -o install.ps1
git diff install.sh install.ps1

To get the refresh as a pull request every week, add this workflow as .github/workflows/install-scripts.yml. It opens a pull request only when the scripts changed:

YAML
name: Refresh install scripts

on:
  schedule:
    - cron: "0 6 * * 1"
  workflow_dispatch:

permissions:
  contents: write
  pull-requests: write

jobs:
  refresh:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
      - name: Download the scripts
        run: |
          curl -fsSL "https://installer.dev/${{ github.repository }}/install.sh" -o install.sh
          curl -fsSL "https://installer.dev/${{ github.repository }}/install.ps1" -o install.ps1
      - name: Open a pull request
        env:
          GH_TOKEN: ${{ github.token }}
        run: |
          git diff --quiet && exit 0
          branch=refresh-install-scripts
          git config user.name "github-actions[bot]"
          git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
          git switch -C "$branch"
          git commit -am "Refresh the install scripts from installer.dev"
          git push --force origin "$branch"
          gh pr view "$branch" > /dev/null 2>&1 || gh pr create --fill --head "$branch"

The workflow needs Allow GitHub Actions to create and approve pull requests, under Settings > Actions > General in your repository. The header’s Version: line changes with every deploy of installer.dev, so expect a pull request in most weeks even when the script logic stayed the same.