LarpixClient/electron/node_modules/app-builder-lib/out/targets/blockmap/blockmap.d.ts
olcxja fb6c8b6ee9
All checks were successful
Android Build / publish (push) Successful in 55s
Linux Build / publish (push) Successful in 1m6s
update electron to v43
2026-07-09 22:38:33 +02:00

16 lines
856 B
TypeScript

import { BlockMapDataHolder } from "builder-util-runtime";
export type CompressionFormat = "deflate" | "gzip";
/**
* Build a content-defined block map for `inFile` using Rabin fingerprinting.
*
* Files are processed via streaming (peak memory ≈ RABIN_MAX = 32 KB per chunk,
* not the full file size), making this safe for large installers.
*
* - If `outFile` is omitted: compressed blockmap is appended to `inFile`
* (used for NSIS web installer / AppImage embed); `blockMapSize` is returned.
* - If `outFile` is provided: compressed blockmap is written to that file;
* `blockMapSize` is not included in the result.
*
* Returned `sha512` is SHA-512 of the full file as it exists after the call.
*/
export declare function buildBlockMap(inFile: string, compressionFormat: CompressionFormat, outFile?: string): Promise<BlockMapDataHolder>;