UNPKG

signing-enclave

Version:

A code signing and notarization tool for macOS and Windows applications. Uses Azure Key Vault for secret and certificate management.

20 lines (19 loc) 971 B
import { NotaryToolApiKeyCredentials, NotaryToolPasswordCredentials } from "@electron/notarize/lib/types"; type SecureNotaryToolPasswordCredentials = Omit<NotaryToolPasswordCredentials, "appleIdPassword"> & { $appSpecificPassword: string; }; type SecureNotaryToolApiKeyCredentials = Omit<NotaryToolApiKeyCredentials, "appleApiKey"> & { $appleApiKey: string; }; export type AppleIdObject = SecureNotaryToolPasswordCredentials | SecureNotaryToolApiKeyCredentials; export interface NotarizeCredentials { appleIdObject: AppleIdObject; cleanup: () => Promise<void>; } export interface HsmSecretFile { secretFilePath: string; cleanup: () => Promise<void>; } export declare function getNotarizationSecretsFromHSM(credentialsWithoutSecret: AppleIdObject): Promise<NotaryToolPasswordCredentials | NotaryToolApiKeyCredentials>; export declare function notarizeWithTimeout(credentialsWithoutSecret: AppleIdObject, appPath: string): Promise<void>; export {};