1 | import { Arch } from "builder-util";
|
2 | import { PublishConfiguration } from "builder-util-runtime";
|
3 | import { Configuration } from "./configuration";
|
4 | import { Platform, Target } from "./core";
|
5 | import { Packager } from "./packager";
|
6 | import { PlatformPackager } from "./platformPackager";
|
7 | import { UploadTask } from "electron-publish";
|
8 | export interface PackagerOptions {
|
9 | targets?: Map<Platform, Map<Arch, Array<string>>>;
|
10 | mac?: Array<string>;
|
11 | linux?: Array<string>;
|
12 | win?: Array<string>;
|
13 | projectDir?: string | null;
|
14 | platformPackagerFactory?: ((info: Packager, platform: Platform) => PlatformPackager<any>) | null;
|
15 | readonly config?: Configuration | string | null;
|
16 | readonly effectiveOptionComputed?: (options: any) => Promise<boolean>;
|
17 | readonly prepackaged?: string | null;
|
18 | }
|
19 | export interface ArtifactCreated extends UploadTask {
|
20 | readonly packager: PlatformPackager<any>;
|
21 | readonly target: Target | null;
|
22 | updateInfo?: any;
|
23 | readonly safeArtifactName?: string | null;
|
24 | readonly publishConfig?: PublishConfiguration | null;
|
25 | readonly isWriteUpdateInfo?: boolean;
|
26 | }
|
27 | export interface ArtifactBuildStarted {
|
28 | readonly targetPresentableName: string;
|
29 | readonly file: string;
|
30 | readonly arch: Arch | null;
|
31 | }
|