mirror of
https://gitee.com/myxzgzs/boyue_jnpf.git
synced 2025-08-14 02:02:42 +08:00
19 lines
829 B
TypeScript
19 lines
829 B
TypeScript
![]() |
import { FileMatcher } from "../fileMatcher";
|
||
|
import { NodeIntegrity } from "./asar";
|
||
|
export interface AsarIntegrityOptions {
|
||
|
readonly resourcesPath: string;
|
||
|
readonly resourcesRelativePath: string;
|
||
|
readonly resourcesDestinationPath: string;
|
||
|
readonly extraResourceMatchers: Array<FileMatcher> | null;
|
||
|
}
|
||
|
export interface HeaderHash {
|
||
|
algorithm: "SHA256";
|
||
|
hash: string;
|
||
|
}
|
||
|
export interface AsarIntegrity {
|
||
|
[key: string]: HeaderHash;
|
||
|
}
|
||
|
export declare function computeData({ resourcesPath, resourcesRelativePath, resourcesDestinationPath, extraResourceMatchers }: AsarIntegrityOptions): Promise<AsarIntegrity>;
|
||
|
export declare function hashFile(file: string, blockSize?: number): Promise<NodeIntegrity>;
|
||
|
export declare function hashFileContents(contents: Buffer | string, blockSize?: number): NodeIntegrity;
|