diff --git a/README.md b/README.md index e9b447e..33f5e75 100644 --- a/README.md +++ b/README.md @@ -177,7 +177,9 @@ From then on, `sudo apt upgrade` picks up new releases. - **Serve the whole directory.** It holds `pool/`, the signed `dists/`, the public key (`mtgc.asc`) and `mtgc.sources`, which carries the key inline so - machines don't need a separate keyring step. `conf/` and `db/` are + machines don't need a separate keyring step. It also has a `README.html` + with these install steps, for anyone who opens the address in a browser. + `conf/` and `db/` are reprepro's own state; they're harmless to serve but aren't needed. The newest three versions are kept, so a bad release can be undone with `sudo apt install mtgc=`. diff --git a/scripts/deb-publish.sh b/scripts/deb-publish.sh index 5ca64f4..df4f290 100755 --- a/scripts/deb-publish.sh +++ b/scripts/deb-publish.sh @@ -141,6 +141,50 @@ EOF sed 's/^$/./; s/^/ /' "$dir/$PACKAGE.asc" } >"$dir/$PACKAGE.sources" +# A landing page for whoever opens the repo's address in a browser. +cat >"$dir/README.html" < + + + + +mtgc apt repo + + + +

mtgc for Debian & Ubuntu

+

An apt repository for the mtgc desktop app (amd64).

+ +

Install

+

Add the repo once. The file includes the signing key, so you don't need a separate keyring step.

+
sudo curl -fsSLo /etc/apt/sources.list.d/$PACKAGE.sources $repo_url/$PACKAGE.sources
+sudo apt update && sudo apt install $PACKAGE
+

From then on, sudo apt upgrade picks up new releases.

+ +

Requirements

+

A 64-bit x86 system with glibc 2.43 or newer (check with ldd --version). +Older releases, such as Ubuntu 24.04 and Debian 13, can't install it.

+ +

Uninstall

+
sudo apt remove $PACKAGE
+sudo rm /etc/apt/sources.list.d/$PACKAGE.sources
+ +

Signing key: $PACKAGE.asc, fingerprint $fpr

+ + +EOF + mkdir -p "$dir/conf" cat >"$dir/conf/distributions" <