UNPKG

app-builder-lib

Version:
19 lines (18 loc) • 1.14 kB
import { Configuration } from "../configuration"; import { BeforeCopyExtraFilesOptions, Framework, PrepareApplicationStageDirectoryOptions } from "../Framework"; import { Packager } from "../index"; import { ElectronDownloadOptions } from "../util/electronGet"; export { ElectronDownloadOptions }; export type ElectronPlatformName = "darwin" | "linux" | "win32" | "mas"; /** * Electron distributables branding options. * @see [Electron BRANDING.json](https://github.com/electron/electron/blob/master/shell/app/BRANDING.json). */ export interface ElectronBrandingOptions { projectName?: string; productName?: string; } export declare function createBrandingOpts(opts: Configuration): Required<ElectronBrandingOptions>; export declare function removeUnusedLanguagesIfNeeded(options: BeforeCopyExtraFilesOptions): Promise<void>; export declare function createElectronFrameworkSupport(configuration: Configuration, packager: Packager): Promise<Framework>; export declare function cleanupAfterUnpack(prepareOptions: PrepareApplicationStageDirectoryOptions, distMacOsAppName: string, isFullCleanup: boolean): Promise<[void, void, void]>;