1 | import { Arch, AsyncTaskManager } from "builder-util";
|
2 | import { SignOptions } from "electron-osx-sign";
|
3 | import { Lazy } from "lazy-val";
|
4 | import { AppInfo } from "./appInfo";
|
5 | import { CodeSigningInfo, Identity } from "./codeSign/macCodeSign";
|
6 | import { Target } from "./core";
|
7 | import { AfterPackContext, ElectronPlatformName } from "./index";
|
8 | import { MacConfiguration } from "./options/macOptions";
|
9 | import { Packager } from "./packager";
|
10 | import { PlatformPackager } from "./platformPackager";
|
11 | export default class MacPackager extends PlatformPackager<MacConfiguration> {
|
12 | readonly codeSigningInfo: Lazy<CodeSigningInfo>;
|
13 | private _iconPath;
|
14 | constructor(info: Packager);
|
15 | get defaultTarget(): Array<string>;
|
16 | protected prepareAppInfo(appInfo: AppInfo): AppInfo;
|
17 | getIconPath(): Promise<string | null>;
|
18 | createTargets(targets: Array<string>, mapper: (name: string, factory: (outDir: string) => Target) => void): void;
|
19 | protected doPack(outDir: string, appOutDir: string, platformName: ElectronPlatformName, arch: Arch, platformSpecificBuildOptions: MacConfiguration, targets: Array<Target>): Promise<any>;
|
20 | pack(outDir: string, arch: Arch, targets: Array<Target>, taskManager: AsyncTaskManager): Promise<any>;
|
21 | private sign;
|
22 | private adjustSignOptions;
|
23 | protected doSign(opts: SignOptions): Promise<any>;
|
24 | protected doFlat(appPath: string, outFile: string, identity: Identity, keychain: string | null | undefined): Promise<any>;
|
25 | getElectronSrcDir(dist: string): string;
|
26 | getElectronDestinationDir(appOutDir: string): string;
|
27 | applyCommonInfo(appPlist: any, contentsPath: string): Promise<void>;
|
28 | protected signApp(packContext: AfterPackContext, isAsar: boolean): Promise<any>;
|
29 | }
|