UNPKG

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