1 | import { WindowsConfiguration } from "../options/winOptions";
|
2 | import { VmManager } from "../vm/vm";
|
3 | import { WinPackager } from "../winPackager";
|
4 | export declare function getSignVendorPath(): Promise<string>;
|
5 | export type CustomWindowsSign = (configuration: CustomWindowsSignTaskConfiguration, packager?: WinPackager) => Promise<any>;
|
6 | export interface WindowsSignOptions {
|
7 | readonly path: string;
|
8 | readonly name?: string | null;
|
9 | readonly cscInfo?: FileCodeSigningInfo | CertificateFromStoreInfo | null;
|
10 | readonly site?: string | null;
|
11 | readonly options: WindowsConfiguration;
|
12 | }
|
13 | export interface WindowsSignTaskConfiguration extends WindowsSignOptions {
|
14 | resultOutputPath?: string;
|
15 | hash: string;
|
16 | isNest: boolean;
|
17 | }
|
18 | export interface CustomWindowsSignTaskConfiguration extends WindowsSignTaskConfiguration {
|
19 | computeSignToolArgs(isWin: boolean): Array<string>;
|
20 | }
|
21 | export declare function sign(options: WindowsSignOptions, packager: WinPackager): Promise<boolean>;
|
22 | export interface FileCodeSigningInfo {
|
23 | readonly file: string;
|
24 | readonly password: string | null;
|
25 | }
|
26 | export declare function getCertInfo(file: string, password: string): Promise<CertificateInfo>;
|
27 | export interface CertificateInfo {
|
28 | readonly commonName: string;
|
29 | readonly bloodyMicrosoftSubjectDn: string;
|
30 | }
|
31 | export interface CertificateFromStoreInfo {
|
32 | thumbprint: string;
|
33 | subject: string;
|
34 | store: string;
|
35 | isLocalMachineStore: boolean;
|
36 | }
|
37 | export declare function getCertificateFromStoreInfo(options: WindowsConfiguration, vm: VmManager): Promise<CertificateFromStoreInfo>;
|
38 | export declare function doSign(configuration: CustomWindowsSignTaskConfiguration, packager: WinPackager): Promise<void>;
|