Skip to content

AdamJHall/alacritty-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Alacritty Builder (Docker + Make)

This repository provides a reproducible way to build and install Alacritty, a fast, GPU-accelerated terminal emulator, using Docker and a simple Makefile workflow.

It avoids polluting your host with Rust toolchains and build dependencies by isolating everything inside a container, then exporting the build artifacts.


πŸ“¦ Requirements

  • Docker (tested on Ubuntu 24.04 host)
  • GNU Make
  • ncurses-bin (provides tic) installed on the host for terminfo
    sudo apt-get install ncurses-bin

⚑ Usage

Build latest Alacritty (default branch)

make

This will:

  • Build Alacritty in Docker
  • Export artifacts to ./output/

Build a specific version

make VERSION=v0.13.2

Install on the host

sudo make install

This will install:

  • alacritty β†’ /usr/local/bin/alacritty
  • Desktop entry β†’ /usr/local/share/applications/Alacritty.desktop
  • Icons β†’ /usr/local/share/icons/hicolor/...
  • Terminfo β†’ via tic (for terminal capabilities)

Verify installation

make check

or

alacritty --version

🧹 Cleanup

Remove exported build artifacts and the Docker image:

make clean

πŸ”§ Targets Overview

Target Description
make Build and export artifacts to ./output/
make install Install Alacritty system-wide on the host
make check Run alacritty --version on the exported binary
make clean Remove artifacts and Docker image

πŸ“‚ Output Directory Structure

After a build, the output/ directory will contain:

output/
β”œβ”€β”€ alacritty          # compiled binary
β”œβ”€β”€ Alacritty.desktop  # desktop entry
β”œβ”€β”€ Alacritty.png      # app icon (128x128)
β”œβ”€β”€ Alacritty.svg      # scalable app icon
└── alacritty.info     # terminfo source

πŸ“ Notes

  • By default, VERSION=latest builds from the master branch of Alacritty.
  • For a specific release, pass VERSION=vX.Y.Z (check Alacritty releases).
  • Building may take a while on first run, since Rust toolchains and dependencies must be compiled.

πŸ“œ License

This repo just provides build tooling.
Alacritty itself is licensed under the Apache-2.0 license.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published