Skip to main content

Module firmware

Module firmware 

Source
Expand description

Firmware resolution, caching, and download.

resolve looks up the correct IPSW for a model (ipsw.me, with Apple’s mesu feed as a fallback); download fetches it resumably and verifies its checksum; and default_cache_dir/cached manage the on-disk cache with .json checksum sidecars. The shared Firmware type lives here.

Structs§

Firmware
Resolved firmware metadata for a specific Mac model.

Functions§

cache_path
Path a firmware would occupy in the cache.
cached
Return the cached path if the firmware is present and verified.
default_cache_dir
The firmware cache directory. On Unix, ${XDG_CONFIG_HOME:-~/.config}/ restorekit/firmwares; on Windows, %APPDATA%\restorekit\firmwares.
download
Download (or resume) the firmware into the cache and verify its checksum. Returns the path to the verified file. A cache hit short-circuits the download.
resolve
Resolve firmware for a model identifier. If version is given, match that exact macOS version (e.g. “26.5.2”); otherwise pick the newest signed build.