1 | import { FileTransformer } from "builder-util/out/fs";
|
2 | import { AsarIntegrity } from "./asar/integrity";
|
3 | import { Platform, PlatformPackager, ElectronPlatformName } from "./index";
|
4 | export interface Framework {
|
5 | readonly name: string;
|
6 | readonly version: string;
|
7 | readonly distMacOsAppName: string;
|
8 | readonly macOsDefaultTargets: Array<string>;
|
9 | readonly defaultAppIdPrefix: string;
|
10 | readonly isNpmRebuildRequired: boolean;
|
11 | readonly isDefaultAppIconProvided: boolean;
|
12 | getDefaultIcon?(platform: Platform): string;
|
13 | prepareApplicationStageDirectory(options: PrepareApplicationStageDirectoryOptions): Promise<any>;
|
14 | beforeCopyExtraFiles?(packager: PlatformPackager<any>, appOutDir: string, asarIntegrity: AsarIntegrity | null): Promise<any>;
|
15 | createTransformer?(): FileTransformer | null;
|
16 | }
|
17 | export interface PrepareApplicationStageDirectoryOptions {
|
18 | readonly packager: PlatformPackager<any>;
|
19 | |
20 |
|
21 |
|
22 | readonly appOutDir: string;
|
23 | readonly platformName: ElectronPlatformName;
|
24 | readonly arch: string;
|
25 | readonly version: string;
|
26 | }
|
27 | export declare function isElectronBased(framework: Framework): boolean;
|