update electron to v43

This commit is contained in:
olcxja 2026-07-09 22:38:33 +02:00
commit fb6c8b6ee9
5385 changed files with 513060 additions and 123058 deletions

View file

@ -1,8 +1,7 @@
/// <reference types="node" />
import { Arch, ArchType } from "builder-util";
import { AllPublishOptions } from "builder-util-runtime";
export declare type Publish = AllPublishOptions | Array<AllPublishOptions> | null;
export declare type TargetConfigType = Array<string | TargetConfiguration> | string | TargetConfiguration | null;
import { Arch, ArchType, AsyncTaskManager } from "builder-util";
import { AllPublishOptions, Nullish } from "builder-util-runtime";
export type Publish = AllPublishOptions | Array<AllPublishOptions> | null;
export type TargetConfigType = Array<string | TargetConfiguration> | string | TargetConfiguration | null;
export interface TargetConfiguration {
/**
* The target name. e.g. `snap`.
@ -30,22 +29,23 @@ export declare abstract class Target {
readonly name: string;
readonly isAsyncSupported: boolean;
abstract readonly outDir: string;
abstract readonly options: TargetSpecificOptions | null | undefined;
protected constructor(name: string, isAsyncSupported?: boolean);
abstract readonly options: TargetSpecificOptions | Nullish;
readonly buildQueueManager: AsyncTaskManager;
constructor(name: string, isAsyncSupported?: boolean);
checkOptions(): Promise<any>;
abstract build(appOutDir: string, arch: Arch): Promise<any>;
finishBuild(): Promise<any>;
}
export interface TargetSpecificOptions {
/**
The [artifact file name template](/configuration/configuration#artifact-file-name-template).
The [artifact file name template](https://www.electron.build/configuration#artifact-file-name-template).
*/
readonly artifactName?: string | null;
publish?: Publish;
}
export declare const DEFAULT_TARGET = "default";
export declare const DIR_TARGET = "dir";
export declare type CompressionLevel = "store" | "normal" | "maximum";
export type CompressionLevel = "store" | "normal" | "maximum";
export interface BeforeBuildContext {
readonly appDir: string;
readonly electronVersion: string;