rustdesk-apt-repo-nightly/README.md

73 lines
3.8 KiB
Markdown

# rustdesk-apt-repo-nightly
[![Create Repo for RustDesk Nightly](https://github.com/xlionjuan/rustdesk-apt-repo-nightly/actions/workflows/nightly.yml/badge.svg)](https://github.com/xlionjuan/rustdesk-apt-repo-nightly/actions/workflows/nightly.yml)
> [!IMPORTANT]
> This is ***unofficial*** [RustDesk](https://github.com/rustdesk/rustdesk/) apt repo, what I can say is *trust me bro*. It is your decision whether to trust me or not.
> [!NOTE]
> You're viewing **Nightly** channel, [click me to check **latest** channel.](https://github.com/xlionjuan/rustdesk-apt-repo-latest)
> [!NOTE]
> An [RPM](https://github.com/xlionjuan/rustdesk-rpm-repo) version is also available.
> [!NOTE]
> Cloudflare R2 source is deprecated, but it will still be available for some time.
This repo will use [aptly](https://github.com/aptly-dev/aptly) and [xlionjuan/fedora-createrepo-image](https://github.com/xlionjuan/fedora-createrepo-image) to create repo, and deploy to GitHub Pages.
The download and verification logic is handled by [xlion-repo-utils-gh](https://github.com/xlionjuan/fedora-createrepo-image/blob/main/scripts/xlion-repo-utils-gh), which fetches release data, downloads packages, and verifies SHA256 checksums.
## Architectures
This repo provides the following three architectures
* `amd64` (x86_64)
* `arm64` (aarch64)
* `armhf` (armv7, desktop only, sciter version)
## Update frequency
Every 3 AM UTC, because RustDesk's Nightly builds take a little over 2 hours.
## Add Repository
### Add GPG Key
Please install [xlion-repo-archive-keyring](https://github.com/xlionjuan/xlion-repo-archive-keyring) package, you need to have `jq` and `curl` installed, this command will query GitHub API to get latest keyring package, verify its SHA256 and install it.
```bash
sudo apt-get update && sudo apt-get install -y jq curl && json="$(curl -fsSL https://api.github.com/repos/xlionjuan/xlion-repo-archive-keyring/releases/latest)" && asset="$(echo "$json" | jq -r '.assets[] | select(.name | endswith(".deb")) | "\(.browser_download_url) \(.digest)"' | head -n1)" && url="${asset%% *}" && digest="${asset##* }" && [ -n "$url" ] && [ "$url" != "null" ] && [ -n "$digest" ] && [ "$digest" != "null" ] || { echo "ERROR: cannot locate .deb asset or SHA256 digest" >&2; return 1 2>/dev/null || false; } && tmpfile="$(mktemp /tmp/xlion-keyring-XXXXXX.deb)" && curl -fL "$url" -o "$tmpfile" || { echo "ERROR: download failed" >&2; return 1 2>/dev/null || false; } && expected="${digest#*:}" && actual="$(sha256sum "$tmpfile" | awk '{print $1}')" && [ "$actual" = "$expected" ] || { echo "ERROR: SHA256 mismatch" >&2; rm -f "$tmpfile"; return 1 2>/dev/null || false; } && sudo dpkg -i "$tmpfile" && rm -f "$tmpfile"
```
### Add Package Source
`.sources` format is supported on all systems.
```bash
curl -fsSL https://xlionjuan.github.io/rustdesk-apt-repo-nightly/nightly.sources | sudo tee /etc/apt/sources.list.d/xlion-rustdesk-repo.sources
```
<details>
<summary>GitLab Pages...</summary>
<br>
Because of terrible Fastly CDN, you may want another choice, import the GitHub Pages' sources first, then run this command.
```bash
sed -i 's/github/gitlab/g' /etc/apt/sources.list.d/xlion-rustdesk-repo.sources
```
</details>
## Install/Upgrade RustDesk
```bash
sudo apt update && sudo apt install rustdesk
```
### Versioning
I use `fpm` to modify the version with current date, so you'll never need to run `reinstall` in order to upgrade.
## License
This repository is intended for distributing software. Unless otherwise specified, all scripts and configurations are licensed under the [GNU AGPLv3](LICENSE). **THIS DOES NOT INCLUDE THE DISTRIBUTED SOFTWARE ITSELF**. For the licenses of the distributed software, please refer to the software developers' websites, Git repositories, the packages' metadata, or contact the developers directly if you have any questions.