update electron to v43
This commit is contained in:
parent
68ac0beedf
commit
fb6c8b6ee9
5385 changed files with 513060 additions and 123058 deletions
68
electron/node_modules/app-builder-lib/out/platformPackager.d.ts
generated
vendored
68
electron/node_modules/app-builder-lib/out/platformPackager.d.ts
generated
vendored
|
|
@ -1,8 +1,24 @@
|
|||
import { Arch, AsyncTaskManager, DebugLogger } from "builder-util";
|
||||
import { FileTransformer } from "builder-util/out/fs";
|
||||
import type { FuseConfig } from "@electron/fuses";
|
||||
import { Arch, AsyncTaskManager, DebugLogger, FileTransformer } from "builder-util";
|
||||
import { Nullish } from "builder-util-runtime";
|
||||
import { AppInfo } from "./appInfo";
|
||||
import { GetFileMatchersOptions } from "./fileMatcher";
|
||||
import { AfterPackContext, CompressionLevel, Configuration, ElectronPlatformName, FileAssociation, Packager, PackagerOptions, Platform, PlatformSpecificBuildOptions, Target, TargetSpecificOptions } from "./index";
|
||||
import { IconFormat, IconInfo } from "./util/iconConverter";
|
||||
import { AssetCatalogResult } from "./util/macosIconComposer";
|
||||
export type DoPackOptions<DC extends PlatformSpecificBuildOptions> = {
|
||||
outDir: string;
|
||||
appOutDir: string;
|
||||
platformName: ElectronPlatformName;
|
||||
arch: Arch;
|
||||
platformSpecificBuildOptions: DC;
|
||||
targets: Array<Target>;
|
||||
options?: {
|
||||
sign?: boolean;
|
||||
disableAsarIntegrity?: boolean;
|
||||
disableFuses?: boolean;
|
||||
};
|
||||
};
|
||||
export declare abstract class PlatformPackager<DC extends PlatformSpecificBuildOptions> {
|
||||
readonly info: Packager;
|
||||
readonly platform: Platform;
|
||||
|
|
@ -21,55 +37,65 @@ export declare abstract class PlatformPackager<DC extends PlatformSpecificBuildO
|
|||
protected prepareAppInfo(appInfo: AppInfo): AppInfo;
|
||||
private static normalizePlatformSpecificBuildOptions;
|
||||
abstract createTargets(targets: Array<string>, mapper: (name: string, factory: (outDir: string) => Target) => void): void;
|
||||
protected getCscPassword(): string;
|
||||
protected getCscLink(extraEnvName?: string | null): string | null | undefined;
|
||||
protected doGetCscPassword(): string | null | undefined;
|
||||
getCscPassword(): string;
|
||||
getCscLink(extraEnvName?: string | null): string | Nullish;
|
||||
doGetCscPassword(): string | Nullish;
|
||||
protected computeAppOutDir(outDir: string, arch: Arch): string;
|
||||
dispatchArtifactCreated(file: string, target: Target | null, arch: Arch | null, safeArtifactName?: string | null): Promise<void>;
|
||||
pack(outDir: string, arch: Arch, targets: Array<Target>, taskManager: AsyncTaskManager): Promise<any>;
|
||||
protected packageInDistributableFormat(appOutDir: string, arch: Arch, targets: Array<Target>, taskManager: AsyncTaskManager): void;
|
||||
private static buildAsyncTargets;
|
||||
private getExtraFileMatchers;
|
||||
createGetFileMatchersOptions(outDir: string, arch: Arch, customBuildOptions: PlatformSpecificBuildOptions): GetFileMatchersOptions;
|
||||
protected doPack(outDir: string, appOutDir: string, platformName: ElectronPlatformName, arch: Arch, platformSpecificBuildOptions: DC, targets: Array<Target>, sign?: boolean, disableAsarIntegrity?: boolean): Promise<void>;
|
||||
protected doPack(packOptions: DoPackOptions<DC>): Promise<void>;
|
||||
protected doAddElectronFuses(packContext: AfterPackContext): Promise<void>;
|
||||
private generateFuseConfig;
|
||||
/**
|
||||
* Use `AfterPackContext` here to keep available for public API
|
||||
* @param {AfterPackContext} context
|
||||
* @param {FuseConfig} fuses
|
||||
*
|
||||
* Can be used in `afterPack` hook for custom fuse logic like below. It's an alternative approach if one wants to override electron-builder's @electron/fuses version
|
||||
* ```
|
||||
* await context.packager.addElectronFuses(context, { ... })
|
||||
* ```
|
||||
*/
|
||||
addElectronFuses(context: AfterPackContext, fuses: FuseConfig): Promise<number>;
|
||||
protected doSignAfterPack(outDir: string, appOutDir: string, platformName: ElectronPlatformName, arch: Arch, platformSpecificBuildOptions: DC, targets: Array<Target>): Promise<void>;
|
||||
protected createTransformerForExtraFiles(packContext: AfterPackContext): FileTransformer | null;
|
||||
private copyAppFiles;
|
||||
protected signApp(packContext: AfterPackContext, isAsar: boolean): Promise<any>;
|
||||
protected signApp(packContext: AfterPackContext, isAsar: boolean): Promise<boolean>;
|
||||
getIconPath(): Promise<string | null>;
|
||||
private computeAsarOptions;
|
||||
getElectronSrcDir(dist: string): string;
|
||||
getElectronDestinationDir(appOutDir: string): string;
|
||||
getResourcesDir(appOutDir: string): string;
|
||||
getMacOsElectronFrameworkResourcesDir(appOutDir: string): string;
|
||||
getMacOsResourcesDir(appOutDir: string): string;
|
||||
private checkFileInPackage;
|
||||
private sanityCheckPackage;
|
||||
computeSafeArtifactName(suggestedName: string | null, ext: string, arch?: Arch | null, skipDefaultArch?: boolean, defaultArch?: string, safePattern?: string): string | null;
|
||||
expandArtifactNamePattern(targetSpecificOptions: TargetSpecificOptions | null | undefined, ext: string, arch?: Arch | null, defaultPattern?: string, skipDefaultArch?: boolean, defaultArch?: string): string;
|
||||
artifactPatternConfig(targetSpecificOptions: TargetSpecificOptions | null | undefined, defaultPattern: string | undefined): {
|
||||
expandArtifactNamePattern(targetSpecificOptions: TargetSpecificOptions | Nullish, ext: string, arch?: Arch | null, defaultPattern?: string, skipDefaultArch?: boolean, defaultArch?: string): string;
|
||||
artifactPatternConfig(targetSpecificOptions: TargetSpecificOptions | Nullish, defaultPattern: string | undefined): {
|
||||
isUserForced: boolean;
|
||||
pattern: string;
|
||||
};
|
||||
expandArtifactBeautyNamePattern(targetSpecificOptions: TargetSpecificOptions | null | undefined, ext: string, arch?: Arch | null): string;
|
||||
expandArtifactBeautyNamePattern(targetSpecificOptions: TargetSpecificOptions | Nullish, ext: string, arch?: Arch | null): string;
|
||||
private computeArtifactName;
|
||||
expandMacro(pattern: string, arch?: string | null, extra?: any, isProductNameSanitized?: boolean): string;
|
||||
generateName2(ext: string | null, classifier: string | null | undefined, deployment: boolean): string;
|
||||
generateName2(ext: string | null, classifier: string | Nullish, deployment: boolean): string;
|
||||
getTempFile(suffix: string): Promise<string>;
|
||||
get fileAssociations(): Array<FileAssociation>;
|
||||
getResource(custom: string | null | undefined, ...names: Array<string>): Promise<string | null>;
|
||||
getResource(custom: string | Nullish, ...names: Array<string>): Promise<string | null>;
|
||||
get forceCodeSigning(): boolean;
|
||||
private assetCatalogResults;
|
||||
protected generateAssetCatalogData(iconPath: string): Promise<AssetCatalogResult>;
|
||||
private cachedIcnsFromIconFile;
|
||||
generateIcnsFromIcon(iconPath: string): Promise<string>;
|
||||
protected getOrConvertIcon(format: IconFormat): Promise<string | null>;
|
||||
getDefaultFrameworkIcon(): string | null;
|
||||
resolveIcon(sources: Array<string>, fallbackSources: Array<string>, outputFormat: IconFormat): Promise<Array<IconInfo>>;
|
||||
}
|
||||
export interface IconInfo {
|
||||
file: string;
|
||||
size: number;
|
||||
}
|
||||
export declare type IconFormat = "icns" | "ico" | "set";
|
||||
export declare function isSafeGithubName(name: string): boolean;
|
||||
export declare function computeSafeArtifactNameIfNeeded(suggestedName: string | null, safeNameProducer: () => string): string | null;
|
||||
export declare function normalizeExt(ext: string): string;
|
||||
export declare function resolveFunction<T>(executor: T | string, name: string): T;
|
||||
export declare function chooseNotNull(v1: string | null | undefined, v2: string | null | undefined): string | null | undefined;
|
||||
export declare function isSafeToUnpackElectronOnRemoteBuildServer(packager: PlatformPackager<any>): boolean;
|
||||
export declare function chooseNotNull<T>(v1: T | Nullish, v2: T | Nullish): T | Nullish;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue