16 lines
593 B
TypeScript
16 lines
593 B
TypeScript
|
|
import { FileMatcher } from "../fileMatcher";
|
||
|
|
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>;
|