Skip to content

A full-featured download manager.

2.9 KB
Raw Blame

Motrix v1.8.19 fixtures

These fixtures were generated by the actual bundled aria2 1.36.0 executable from the official Motrix v1.8.19 Git tree. The generator extracts that binary from Git and verifies its SHA-256 before executing it. It does not use the current Motrix engine, an adjacent engine checkout, or a real user profile. The binary itself is not checked in.

Run on macOS arm64 from the repository root:

node tests/fixtures/legacy-v1/generate.mjs

The local checkout must contain tag v1.8.19, commit a0a1fe90f7e9f6d305ed2b512f62c8d36c2fb95a. The authoritative binary is extra/darwin/arm64/engine/aria2c, Git object f4a274061acbbc22c6eb1ab487ffdc0e80ad1b71, SHA-256 1527c4d071c16c1266880e93750e385cdd4e9d2a950d7f56cb5a21125e3bd311. Source reference: official Motrix v1.8.19 tree.

The generator creates a disposable profile and a separate downloads directory, as normal installations do. Only loopback HTTP/RPC/tracker endpoints are used; DHT, PEX and local peer discovery are disabled. The HTTP response is generated test data, and the two-file private torrent describes generated test data. No private tokens, trackers, credentials or user paths are included.

download.session, both .aria2 files and the saved RPC .torrent are actual old-engine output. The .aria2 and .torrent bytes are unmodified. partial.bin.gz contains the actual partial HTTP output, compressed without changing its uncompressed bytes. Profile/download directory prefixes and the HTTP port in text files use placeholders. The saved torrent contains its original loopback tracker port. Ports, incomplete block boundaries and torrent filenames can vary on regeneration; provenance.json records the resulting digests and the source binary identity.

user.json and system.json are source-derived defaults, evaluated from the tagged ConfigManager.js with disposable paths and an English locale. They are not presented as output from running the complete old Electron app. The engine is launched using these defaults and the tagged aria2.conf, with the documented loopback/isolation overrides in the generator.

The saved RPC torrent filename is the SHA-1 of its complete metadata bytes, which differs from its info hash. Its session reference is outside the profile grant. Scanner tests deliberately verify that this real layout yields an unselectable metadata-required row rather than reading arbitrary downloads paths from system.json. A separately labeled test variant copies metadata inside the grant to verify parsing and file selection. The external-directory case still needs an explicit additional user grant before it can be imported.

These fixtures prove compatibility with this tagged binary's serialization; they do not prove packaged cross-platform migration, historical HTTP validator availability, or safe continuation from arbitrary legacy files.