1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//! The moving parts behind `accentup`, the installer for [Accent CMS].
//!
//! Everything here mirrors what the shell installers published at
//! `AccentCMS/accent` (`install.sh`, `install.ps1`) do, with one deliberate
//! difference: signature verification is mandatory. The shell scripts fall
//! back to checksum-only verification when `gpg` is missing; this crate
//! embeds the release signing key and verifies in-process, so there is
//! nothing to fall back to.
//!
//! The release layout the whole crate is written against:
//!
//! ```text
//! https://github.com/AccentCMS/accent/releases/download/v0.25.0/
//! accent-v0.25.0-aarch64-apple-darwin.tar.gz # binary at archive root
//! checksums-v0.25.0.txt # sha256sum format, all targets
//! checksums-v0.25.0.txt.asc # detached OpenPGP signature
//! ```
//!
//! [Accent CMS]: https://accentcms.dev
//! This library exists so the installer's parts can be tested in isolation.
//! It is an implementation detail of the `accentup` binary, and its API is
//! not stable across releases.
/// Unpacking release archives.
/// The published `checksums-<version>.txt`.
/// Command line arguments.
/// The install, update, uninstall and which flows.
/// Placing, inspecting and removing the installed binary.
/// HTTP downloads.
/// Host detection and install locations.
/// Versions, repositories and download URLs.
/// Console output.
/// Signature and checksum verification.