electron-builder-lib
Version:
electron-builder lib
43 lines (42 loc) • 1.45 kB
TypeScript
import { WinPackager } from "../winPackager";
export interface CommonWindowsInstallerConfiguration {
readonly oneClick?: boolean;
/**
* Whether to install per all users (per-machine).
* @default false
*/
readonly perMachine?: boolean;
/**
* *one-click installer only.* Whether to run the installed application after finish.
* @default true
*/
readonly runAfterFinish?: boolean;
/**
* Whether to create desktop shortcut.
* @default true
*/
readonly createDesktopShortcut?: boolean;
/**
* Whether to create start menu shortcut.
* @default true
*/
readonly createStartMenuShortcut?: boolean;
/**
* Whether to create submenu for start menu shortcut and program files directory. If `true`, company name will be used. Or string value.
* @default false
*/
readonly menuCategory?: boolean | string;
/**
* The name that will be used for all shortcuts. Defaults to the application name.
*/
readonly shortcutName?: string | null;
}
export interface FinalCommonWindowsInstallerOptions {
isAssisted: boolean;
isPerMachine: boolean;
shortcutName: string;
menuCategory: string | null;
isCreateDesktopShortcut: boolean;
isCreateStartMenuShortcut: boolean;
}
export declare function getEffectiveOptions(options: CommonWindowsInstallerConfiguration, packager: WinPackager): FinalCommonWindowsInstallerOptions;