1 | import { Arch, ArchType } from "builder-util";
|
2 | import { AllPublishOptions } from "builder-util-runtime";
|
3 | export type Publish = AllPublishOptions | Array<AllPublishOptions> | null;
|
4 | export type TargetConfigType = Array<string | TargetConfiguration> | string | TargetConfiguration | null;
|
5 | export interface TargetConfiguration {
|
6 | |
7 |
|
8 |
|
9 | readonly target: string;
|
10 | |
11 |
|
12 |
|
13 | readonly arch?: Array<ArchType> | ArchType;
|
14 | }
|
15 | export declare class Platform {
|
16 | name: string;
|
17 | buildConfigurationKey: string;
|
18 | nodeName: NodeJS.Platform;
|
19 | static MAC: Platform;
|
20 | static LINUX: Platform;
|
21 | static WINDOWS: Platform;
|
22 | constructor(name: string, buildConfigurationKey: string, nodeName: NodeJS.Platform);
|
23 | toString(): string;
|
24 | createTarget(type?: string | Array<string> | null, ...archs: Array<Arch>): Map<Platform, Map<Arch, Array<string>>>;
|
25 | static current(): Platform;
|
26 | static fromString(name: string): Platform;
|
27 | }
|
28 | export declare abstract class Target {
|
29 | readonly name: string;
|
30 | readonly isAsyncSupported: boolean;
|
31 | abstract readonly outDir: string;
|
32 | abstract readonly options: TargetSpecificOptions | null | undefined;
|
33 | protected constructor(name: string, isAsyncSupported?: boolean);
|
34 | checkOptions(): Promise<any>;
|
35 | abstract build(appOutDir: string, arch: Arch): Promise<any>;
|
36 | finishBuild(): Promise<any>;
|
37 | }
|
38 | export interface TargetSpecificOptions {
|
39 | |
40 |
|
41 |
|
42 | readonly artifactName?: string | null;
|
43 | publish?: Publish;
|
44 | }
|
45 | export declare const DEFAULT_TARGET = "default";
|
46 | export declare const DIR_TARGET = "dir";
|
47 | export type CompressionLevel = "store" | "normal" | "maximum";
|
48 | export interface BeforeBuildContext {
|
49 | readonly appDir: string;
|
50 | readonly electronVersion: string;
|
51 | readonly platform: Platform;
|
52 | readonly arch: string;
|
53 | }
|
54 | export interface SourceRepositoryInfo {
|
55 | type?: string;
|
56 | domain?: string;
|
57 | user: string;
|
58 | project: string;
|
59 | }
|