Skip to content

Package Repositories

BlackCat edited this page Nov 29, 2026 · 2 revisions

Package repositories

TwilightMC publishes signed APT and RPM repositories on GitHub Pages. They are rebuilt from the newest release of every channel by pkg-repo.yml and signed with the project's package key.

  • Landing page: https://blackcatofficialytb.github.io/TwilightMC-OSS/
  • APT root: https://blackcatofficialytb.github.io/TwilightMC-OSS/apt
  • RPM root: https://blackcatofficialytb.github.io/TwilightMC-OSS/rpm
  • Public key: https://blackcatofficialytb.github.io/TwilightMC-OSS/keyring/pubkey.gpg

The package is named twilight-mc and installs the desktop GUI as /usr/bin/twilight-ui with a desktop entry and icons. The dependency-free twilight CLI is shipped in the portable archives, not in the system package.

Channels

Channel APT suite RPM path
Stable stable rpm/stable/$basearch
Star (beta) beta rpm/beta/$basearch
Bolide (alpha) alpha rpm/alpha/$basearch
Snapshot snapshot rpm/snapshot/$basearch

Each channel indexes the newest release of that channel. Older versions remain available as direct downloads on the releases page.

Supported architectures: amd64 / x86_64 and arm64 / aarch64.

Debian / Ubuntu (APT)

# 1. import the repository key
curl -fsSL https://blackcatofficialytb.github.io/TwilightMC-OSS/keyring/pubkey.gpg \
  | sudo gpg --dearmor -o /usr/share/keyrings/twilightmc.gpg

# 2. add the stable channel
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

# 3. install
sudo apt update
sudo apt install twilight-mc

Switch stable for beta, alpha or snapshot in the source line to follow another channel. You can keep several lines; APT picks the highest version unless you pin a suite.

Pin a channel

/etc/apt/preferences.d/twilightmc:

Package: twilight-mc
Pin: release n=stable
Pin-Priority: 900

Package: twilight-mc
Pin: release n=beta
Pin-Priority: 500

Verify the metadata

gpg --verify /var/lib/apt/lists/*TwilightMC*InRelease 2>/dev/null || true
apt-cache policy twilight-mc

The InRelease file is clearsigned and Release.gpg is a detached signature. APT verifies them automatically through signed-by=.

Fedora / RHEL / AlmaLinux (DNF)

Create /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

Then:

sudo dnf install twilight-mc

gpgcheck=1 verifies the package signature; repo_gpgcheck=1 verifies repodata/repomd.xml through repomd.xml.asc. Both are signed by the same key. For another channel, copy the block and replace stable in the section name and baseurl with beta, alpha or snapshot.

Verify manually

sudo rpm --import https://blackcatofficialytb.github.io/TwilightMC-OSS/keyring/pubkey.gpg
rpm -qpi /var/cache/dnf/twilightmc-*/packages/*.rpm | head
dnf repolist --verbose twilightmc-stable

How the repositories are built

  1. A channel workflow (snapshot, alpha, beta, release) finishes and publishes its .deb/.rpm assets.
  2. pkg-repo.yml waits for that workflow to complete, then downloads the newest release of each channel.
  3. packaging/repo/build_pkg_repo.sh stages packages by channel and architecture, de-duplicates identical name/version/arch builds, generates Packages/Packages.gz/Release for APT and repodata for RPM, signs InRelease, Release.gpg, repomd.xml.asc and the RPM packages, and writes the landing page.
  4. The tree is uploaded as a Pages artifact and deployed to https://blackcatofficialytb.github.io/TwilightMC-OSS/.

Signing uses the PKG_GPG_KEY_ID, PKG_GPG_PRIVATE_KEY and PKG_GPG_PASSPHRASE repository secrets. Without them the workflow publishes an unsigned repository and warns in the log.

Troubleshooting

Symptom Fix
NO_PUBKEY / The following signatures couldn't be verified re-import the key with the curl + gpg --dearmor command; check the signed-by= path
404 Not Found on apt update the suite must be one of stable, beta, alpha, snapshot
404 on DNF $basearch must be x86_64 or aarch64; check the channel in baseurl
Hash Sum mismatch clear the APT lists (sudo apt clean && sudo apt update) — a deploy may have been mid-flight
package twilight-mc is not available that channel has no package yet, or your architecture is not built; try stable
twilight: command not found the package ships the GUI only; download the portable archive for the CLI
DNF rejects the repo metadata confirm repo_gpgcheck=1 and that gpgkey= points at the current key

Security notes

  • The repositories are served over HTTPS from GitHub Pages.
  • The key is published at a stable URL; the private key exists only in GitHub Actions secrets.
  • Packages are unsigned upstream binaries wrapped by Tauri; the repository signature proves the package came from the project's workflow, not that the application binary carries a commercial code-signing certificate. See Installation for archive checksums.

Clone this wiki locally