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
# Packs a release build into dist/RustCord-<version>-linux-x86_64.tar.gz with
# its .sha256. Run from the repository root after
# `cargo build --release -p rustcord`.
set -eu
version=$(sed -n 's/^version = "\(.*\)"/\1/p' Cargo.toml | head -n 1)
name="RustCord-$version-linux-x86_64"
stage="dist/$name"
rm -rf "$stage"
mkdir -p "$stage"
install -m 755 target/release/rustcord "$stage/rustcord"
install -m 644 apps/rustcord/assets/icon-256.png "$stage/rustcord.png"
install -m 644 packaging/linux/rustcord.desktop "$stage/rustcord.desktop"
install -m 755 packaging/linux/install.sh "$stage/install.sh"
install -m 644 LICENSE "$stage/LICENSE"
install -m 644 THIRD_PARTY_NOTICES.md "$stage/THIRD_PARTY_NOTICES.md"
tar -C dist -czf "dist/$name.tar.gz" "$name"
(cd dist && sha256sum "$name.tar.gz" > "$name.tar.gz.sha256")
rm -rf "$stage"
echo "dist/$name.tar.gz"