Lightweight native Discord client for Windows, Linux and macOS, written in Rust. No Electron, no browser engine.
Rust desktop-appdiscorddiscord-clienteguielectron-alternativelightweightlinuxmacosnative-apprustwindows
#!/bin/sh
# Installs RustCord for you only (no root needed): the program in ~/.local/bin,
# plus its entry and icon in the app menu. Run it again to update.
# `./install.sh --uninstall` removes it again.
set -eu
here=$(cd "$(dirname "$0")" && pwd)
bin="${XDG_BIN_HOME:-$HOME/.local/bin}"
data="${XDG_DATA_HOME:-$HOME/.local/share}"
icon="$data/icons/hicolor/256x256/apps/rustcord.png"
entry="$data/applications/rustcord.desktop"
if [ "${1:-}" = "--uninstall" ]; then
rm -f "$bin/rustcord" "$entry" "$icon"
echo "RustCord is uninstalled. Your settings and login stay in ~/.config/rustcord,"
echo "~/.cache/rustcord and your keyring until you delete them."
exit 0
fi
mkdir -p "$bin" "$(dirname "$icon")" "$(dirname "$entry")"
install -m 755 "$here/rustcord" "$bin/rustcord"
install -m 644 "$here/rustcord.png" "$icon"
sed "s|^Exec=.*|Exec=\"$bin/rustcord\"|" "$here/rustcord.desktop" > "$entry"
chmod 644 "$entry"
command -v update-desktop-database >/dev/null 2>&1 && update-desktop-database -q "$(dirname "$entry")" || true
echo "RustCord is installed: find it in your app menu, or run $bin/rustcord"