UNPKG

1.26 kBTypeScriptView Raw
1import { Arch } from "builder-util";
2import { PublishConfiguration } from "builder-util-runtime";
3import { Configuration } from "./configuration";
4import { Platform, Target } from "./core";
5import { Packager } from "./packager";
6import { PlatformPackager } from "./platformPackager";
7import { UploadTask } from "electron-publish";
8export 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}
19export 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}
27export interface ArtifactBuildStarted {
28 readonly targetPresentableName: string;
29 readonly file: string;
30 readonly arch: Arch | null;
31}