Skip to content

Installation

BlackCat edited this page Nov 29, 2026 · 3 revisions

Installation

TwilightMC is available in two shapes:

  • Portable archive — the twilight CLI and the twilight-ui desktop GUI, unpacked into one folder. No installer, no admin rights.
  • System package — a signed .deb or .rpm that installs the GUI as /usr/bin/twilight-ui with a desktop entry and icons. The CLI stays in the portable archive.

Pick the channel you want first: Stable (vX.Y.Z), Star beta (vX.Y.ZbN), Bolide alpha (vX.Y.ZaN) or the rolling Snapshot. See Release channels for the difference.

Requirements

Platform GUI CLI
Windows 10/11 WebView2 Runtime (preinstalled on Windows 11) none
macOS (Apple Silicon) system WKWebView none
Linux x86_64 / aarch64 WebKitGTK 4.1 + GTK 3 none
FreeBSD not supported build from source

Java runtimes can be discovered from the system or downloaded/installed by the GUI from supported vendors (Adoptium, Mojang, Azul, Liberica, Corretto, Microsoft, GraalVM, OpenLogic) with checksum verification.

On Debian/Ubuntu the GUI runtime is libwebkit2gtk-4.1-0; on Fedora/RHEL it is webkit2gtk4.1. The .deb/.rpm packages pull these in automatically. The CLI is dependency-free on every platform.

Download an archive

Grab the file for your platform from GitHub Releases. Release assets follow this naming scheme:

twilight-<tag>-<platform>-<toolchain>.<ext>              # stable / alpha / beta
twilight-snapshot-v<version>-<ddmmyyyy>-<commit>-<platform>-<toolchain>.<ext>

Linux builds use .tar.zst; Windows and macOS use .zip. The Linux matrix covers GCC and Clang on x86_64 plus a native aarch64 build for SBCs such as the Raspberry Pi 5, Radxa Rock 5, Orange Pi and Asahi Linux.

What is inside

File Purpose
twilight / twilight.exe CLI: launch, modpack install, JVM discovery
twilight-ui / twilight-ui.exe Tauri v2 desktop GUI
README.md, VERSION.md, CREDITS.md, LICENSE* governance and licensing
runtime libraries (when needed) e.g. WebView2Loader.dll and the MinGW GCC runtime DLLs

Unpack

# Linux — install zstd first if your distro does not ship it
tar -xf twilight-…-linux-x86_64.tar.zst

# Windows / macOS
unzip twilight-…-windows-x86_64.zip

The archive expands into a single twilight-…-<platform> folder. Keep the folder together. On the Windows MinGW build, twilight-ui.exe needs WebView2Loader.dll, libgcc_s_seh-1.dll, libstdc++-6.dll and libwinpthread-1.dll beside it.

First launch

./twilight-ui          # desktop GUI
./twilight versions    # CLI: resolve the vanilla version list
./twilight launch latest --dry-run

On Linux you may need chmod +x twilight twilight-ui after extracting with a tool that drops the executable bit.

Verify the download

Every release ships a checksums.sha256 covering every archive. Verify before running an unsigned binary.

Windows (PowerShell, inside the download folder):

Get-Content .\checksums.sha256 | ForEach-Object {
    $parts = $_ -split '  ', 2
    $hash = (Get-FileHash $parts[1].Trim() -Algorithm SHA256).Hash.ToLower()
    "$($hash -eq $parts[0]) $($parts[1].Trim())"
}

Linux / macOS:

sha256sum -c checksums.sha256      # GNU coreutils or BusyBox
shasum -a 256 -c checksums.sha256 # macOS

Package repositories (APT / DNF)

The signed repositories are hosted on GitHub Pages:

  • APT: https://blackcatofficialytb.github.io/TwilightMC-OSS/apt
  • RPM: https://blackcatofficialytb.github.io/TwilightMC-OSS/rpm
  • Key: https://blackcatofficialytb.github.io/TwilightMC-OSS/keyring/pubkey.gpg
# Debian / Ubuntu — stable channel
curl -fsSL https://blackcatofficialytb.github.io/TwilightMC-OSS/keyring/pubkey.gpg \
  | sudo gpg --dearmor -o /usr/share/keyrings/twilightmc.gpg
echo "deb [signed-by=/usr/share/keyrings/twilightmc.gpg] https://blackcatofficialytb.github.io/TwilightMC-OSS/apt stable main" \
  | sudo tee /etc/apt/sources.list.d/twilightmc.list
sudo apt update && sudo apt install twilight-mc
# Fedora / RHEL / AlmaLinux — /etc/yum.repos.d/twilightmc.repo
[twilightmc-stable]
name=TwilightMC Stable
baseurl=https://blackcatofficialytb.github.io/TwilightMC-OSS/rpm/stable/$basearch
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://blackcatofficialytb.github.io/TwilightMC-OSS/keyring/pubkey.gpg

Replace stable with beta, alpha or snapshot to follow another channel. Full instructions, verification and troubleshooting live in Package repositories.

Platform notes

Windows

  • Windows 11 already has WebView2. Windows 10 downloads it on first run.
  • MSVC and Clang builds link the WebView2 loader statically; the MinGW build bundles it. Never copy twilight-ui.exe out of its folder alone.
  • SmartScreen may show Windows protected your PC: More info → Run anyway.

macOS

  • Both binaries run as-is; WKWebView is part of the system.
  • Gatekeeper may block the unsigned app: System Settings → Privacy & Security → Open Anyway, or xattr -cr /path/to/twilight.

Linux

  • The GUI needs WebKitGTK 4.1 and GTK 3. The CLI does not.
  • The .deb/.rpm packages install the GUI and its desktop entry; use the portable archive if you also want the twilight CLI in /usr/bin.

FreeBSD

No pre-built archive is published. Build the CLI from source:

cargo build --release -p twilight-cli

The Tauri GUI stack (wry/tao) is not officially supported on FreeBSD.

Troubleshooting

Symptom Fix
error while loading shared libraries: libwebkit2gtk-4.1.so.0 install libwebkit2gtk-4.1-0 (Debian/Ubuntu) or webkit2gtk4.1 (Fedora)
WebView2Loader.dll was not found (Windows MinGW) unpack the whole archive; keep the DLLs beside twilight-ui.exe
tar: Cannot exec zstd install zstd (apt install zstd, apk add zstd, pacman -S zstd)
Gatekeeper refuses to open the app xattr -cr the binary, or use Open Anyway in Settings
twilight: command not found after a .deb install the package ships the GUI only; use the portable archive for the CLI
APT reports NO_PUBKEY re-import the keyring with the curl + gpg --dearmor command above

Still stuck? Open an issue with your platform, channel, exact archive name and the full error output: github.com/BlackCatOfficialytb/TwilightMC-OSS/issues.

Clone this wiki locally