@scolastico-dev/walu
    Preparing search index...

    Function downloadUpdateBin

    • Downloads the update.bin file from the configured API endpoint with integrity verification. This function downloads the binary update file in chunks, verifies its hash matches the expected value from the version file, and stores it for installation.

      Parameters

      • cfg: WaluConfig

        The WALU configuration containing API URLs and storage functions

      • version: IVersionFile

        The version file object containing the expected hash for verification

      Returns Promise<void>

      Promise that resolves when the download and verification are complete

      If the download fails, hash verification fails, or storage fails