Repository navigation
Building and Compiling
Henrique de Freitas edited this page Sep 23, 2026
·
2 revisions
This guide explains how to compile and build production-ready Litecord binaries from source code.
-
Rust Toolchain:
rustup default stable-x86_64-pc-windows-msvc - Visual Studio C++ Build Tools: MSVC compiler and Windows 10/11 SDK.
-
Inno Setup (Optional): For building the official
Litecord-Setup-x64.exeinstaller.
- Required system packages:
# Debian/Ubuntu: sudo apt-get install -y build-essential libasound2-dev libssl-dev libx11-dev libfontconfig1-dev # Arch Linux: sudo pacman -S --needed base-devel alsa-lib openssl libx11 fontconfig
cargo run --bin litecordcargo run --bin litecord --releaseRUSTFLAGS="-C target-feature=+crt-static" cargo build --release --bin litecordLitecord packages all dynamic libraries into a distro-agnostic AppImage:
# 1. Download quick-sharun
wget -q https://raw.githubusercontent.com/pkgforge-dev/Anylinux-AppImages/refs/heads/main/useful-tools/quick-sharun.sh -O ./quick-sharun
chmod +x ./quick-sharun
# 2. Package binary and bundled dependencies
export OUTPATH=.
export DESKTOP=assets/litecord.desktop
export ICON=assets/litecord.png
export DEPLOY_GTK=1
./quick-sharun target/release/litecord
./quick-sharun --make-appimage
mv *.AppImage Litecord-x86_64.AppImageCargo.toml includes tuned release profile settings:
[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1
panic = "abort"
strip = trueThis reduces the final standalone executable down to ~8 MB with instant sub-150ms startup times.
Litecord β Ultra-Lightweight, High-Performance Native Discord Client in Rust. Licensed under MIT.