1 | import { TmpDir } from "builder-util";
|
2 | export declare const appleCertificatePrefixes: string[];
|
3 | export declare type CertType = "Developer ID Application" | "Developer ID Installer" | "3rd Party Mac Developer Application" | "3rd Party Mac Developer Installer" | "Mac Developer";
|
4 | export interface CodeSigningInfo {
|
5 | keychainName?: string | null;
|
6 | }
|
7 | export declare function isSignAllowed(isPrintWarn?: boolean): boolean;
|
8 | export declare function reportError(isMas: boolean, certificateType: CertType, qualifier: string | null | undefined, keychainName: string | null | undefined, isForceCodeSigning: boolean): Promise<void>;
|
9 |
|
10 | export declare function downloadCertificate(urlOrBase64: string, tmpDir: TmpDir, currentDir: string): Promise<string>;
|
11 | export interface CreateKeychainOptions {
|
12 | tmpDir: TmpDir;
|
13 | cscLink: string;
|
14 | cscKeyPassword: string;
|
15 | cscILink?: string | null;
|
16 | cscIKeyPassword?: string | null;
|
17 | currentDir: string;
|
18 | }
|
19 | export declare function createKeychain({ tmpDir, cscLink, cscKeyPassword, cscILink, cscIKeyPassword, currentDir }: CreateKeychainOptions): Promise<CodeSigningInfo>;
|
20 |
|
21 | export declare function sign(path: string, name: string, keychain: string): Promise<any>;
|
22 | export declare let findIdentityRawResult: Promise<Array<string>> | null;
|
23 | export declare class Identity {
|
24 | readonly name: string;
|
25 | readonly hash: string;
|
26 | constructor(name: string, hash: string);
|
27 | }
|
28 | export declare function findIdentity(certType: CertType, qualifier?: string | null, keychain?: string | null): Promise<Identity | null>;
|