Release final readonly class
Minn\Ops\Release · public/minn/src/Minn/Ops/Release.php · 58 lines
One published Minn release as the update service describes it (and as the minn_release option keeps it, the same shape): the version, its notes and page, when it went out, and its minn.zip with that file's sha256 and its Ed25519 signature. Anything else is not a release Minn offers: a version that is not major.minor.patch, a package anywhere but Minn's own downloads, a missing checksum, or a missing signature.
Constants and properties
| const | ASSET = 'minn.zip' | The archive every release ships: the public/minn/ tree with Minn Admin bundled at minn/admin. |
| const | DOWNLOADS = 'https://updates.minn.run/v1/minn/download/' | Where release packages download from; EngineUpdate fetches nothing else. |
| prop | readonly string $version | Promoted from the constructor. |
| prop | readonly string $url | Promoted from the constructor. |
| prop | readonly string $published | Promoted from the constructor. |
| prop | readonly string $notes | Promoted from the constructor. |
| prop | readonly string $package | Promoted from the constructor. |
| prop | readonly string $sha256 | Promoted from the constructor. |
| prop | readonly string $signature | Promoted from the constructor. |
Public
| new | __construct(string $version, string $url, string $published, string $notes, string $package, string $sha256, string $signature)# | ||||
| static | fromArray(array $row): ?self# | A release from the service's answer or the stored option; null when it is not one Minn offers.
| |||
| method | toArray(): array# | The release as it is kept in the minn_release option. @return array{version: string, url: string, published: string, notes: string, package: string, sha256: string, signature: string} | |||
| method | newerThan(string $installed): bool# | Whether this release is newer than a version that is installed. |
Nothing matches.