mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
Hex polls anoma.ly/release/hex/desktop/<channel>.json on every OS and decides with the release protocol's client rules (the service's shared test vectors in tests/fixtures/release-protocol): strictly newer unless revoked, the minimum version before rollout, and a device-local rollout bucket that is never sent. Direct installs (Linux and Windows with the installer's receipt, macOS a replaceable Hex.app) download resumably, check size and SHA-256, then the OS code signature (macOS app/update-requirement.txt: Developer ID 5NZ4Q7NXJ4, anomaly.hex, notarized; Windows Authenticode from Anomaly's Artifact Signing identity), and stage the update for Restart to update. macOS swaps the bundle in with renamex_np(RENAME_SWAP) at restart or quit; a read-only location links to the DMG. Package-managed installs show their manager's command; source and test builds never check; DisableUpdates (macOS defaults, Windows policy key) turns checks off. Sparkle, its framework, Info.plist keys, appcast generation, and the ed25519 feeds are gone. release-app.sh prepare leaves Hex-<v>-macos-arm64.dmg and .zip (root Hex.app). Macs on 2.3.1 get packaging/macos/legacy-appcast.xml: one informational item linking to anoma.ly/hex.
88 lines
1.1 KiB
JSON
88 lines
1.1 KiB
JSON
{
|
|
"description": "compare(a, b) is -1, 0 or 1. Invalid strings must be rejected.",
|
|
"compare": [
|
|
[
|
|
"1.0.0",
|
|
"1.0.0",
|
|
0
|
|
],
|
|
[
|
|
"1.0.0",
|
|
"1.0.1",
|
|
-1
|
|
],
|
|
[
|
|
"1.10.0",
|
|
"1.9.0",
|
|
1
|
|
],
|
|
[
|
|
"1.0.0-alpha",
|
|
"1.0.0",
|
|
-1
|
|
],
|
|
[
|
|
"1.0.0-alpha",
|
|
"1.0.0-alpha.1",
|
|
-1
|
|
],
|
|
[
|
|
"1.0.0-alpha.1",
|
|
"1.0.0-alpha.beta",
|
|
-1
|
|
],
|
|
[
|
|
"1.0.0-alpha.beta",
|
|
"1.0.0-beta",
|
|
-1
|
|
],
|
|
[
|
|
"1.0.0-beta.2",
|
|
"1.0.0-beta.11",
|
|
-1
|
|
],
|
|
[
|
|
"1.0.0-beta.11",
|
|
"1.0.0-rc.1",
|
|
-1
|
|
],
|
|
[
|
|
"1.0.0-dev.9",
|
|
"1.0.0-dev.10",
|
|
-1
|
|
],
|
|
[
|
|
"1.0.0-rc.1",
|
|
"1.0.0",
|
|
-1
|
|
],
|
|
[
|
|
"2.0.0-dev.1",
|
|
"1.9.9",
|
|
1
|
|
],
|
|
[
|
|
"1.0.0-1",
|
|
"1.0.0-a",
|
|
-1
|
|
],
|
|
[
|
|
"9007199254740991.0.0",
|
|
"1.0.0",
|
|
1
|
|
]
|
|
],
|
|
"invalid": [
|
|
"1",
|
|
"1.0",
|
|
"v1.0.0",
|
|
"01.0.0",
|
|
"1.0.0-01",
|
|
"1.0.0+build",
|
|
"1.0.0-",
|
|
"1.0.0-beta..1",
|
|
" 1.0.0",
|
|
"9007199254740992.0.0",
|
|
"1.0.0-a_b"
|
|
]
|
|
}
|