hex/tests/fixtures/release-protocol/semver.json
Dax Raad ecb228b8a0 feat(updater): one in-app updater on the Anomaly release service; drop Sparkle
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.
2026-10-24 11:03:26 -04:00

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"
]
}