update electron to v43
This commit is contained in:
parent
68ac0beedf
commit
fb6c8b6ee9
5385 changed files with 513060 additions and 123058 deletions
36
electron/node_modules/app-builder-lib/out/targets/snap/SnapTarget.d.ts
generated
vendored
Normal file
36
electron/node_modules/app-builder-lib/out/targets/snap/SnapTarget.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
import { Arch } from "builder-util";
|
||||
import { SnapStoreOptions } from "builder-util-runtime";
|
||||
import { Configuration } from "../../configuration";
|
||||
import { Target } from "../../core";
|
||||
import { LinuxPackager } from "../../linuxPackager";
|
||||
import { SnapcraftOptions, SnapOptions } from "../../options/SnapOptions";
|
||||
import { LinuxTargetHelper } from "../LinuxTargetHelper";
|
||||
import { SnapcraftYAML } from "./snapcraft";
|
||||
/** Abstract base for all snap build strategies (core24, legacy core18/20/22, custom pass-through). */
|
||||
export declare abstract class SnapCore<T> {
|
||||
protected readonly packager: LinuxPackager;
|
||||
protected readonly helper: LinuxTargetHelper;
|
||||
protected readonly options: T;
|
||||
protected abstract defaultPlugs: Array<string>;
|
||||
constructor(packager: LinuxPackager, helper: LinuxTargetHelper, options: T);
|
||||
abstract createDescriptor(arch: Arch): Promise<SnapcraftYAML>;
|
||||
abstract buildSnap(params: {
|
||||
snap: SnapcraftYAML;
|
||||
appOutDir: string;
|
||||
stageDir: string;
|
||||
snapArch: Arch;
|
||||
artifactPath: string;
|
||||
}): Promise<void>;
|
||||
}
|
||||
/** Snap build target — merges `snapcraft` (preferred) and legacy `snap` config, then delegates to the appropriate `SnapCore` strategy. */
|
||||
export default class SnapTarget extends Target {
|
||||
protected readonly packager: LinuxPackager;
|
||||
protected readonly helper: LinuxTargetHelper;
|
||||
readonly outDir: string;
|
||||
readonly options: SnapcraftOptions | SnapOptions;
|
||||
constructor(name: string, packager: LinuxPackager, helper: LinuxTargetHelper, outDir: string);
|
||||
build(appOutDir: string, arch: Arch): Promise<any>;
|
||||
protected findSnapPublishConfig(config?: Configuration): SnapStoreOptions | null;
|
||||
private findSnapPublishConfigInPublishNode;
|
||||
private isSnapStoreOptions;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue