2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-11-11 07:41:04 +00:00
nativefier/src/options/model.ts
2021-04-30 23:10:12 -04:00

72 lines
1.8 KiB
TypeScript

import * as electronPackager from 'electron-packager';
export interface ElectronPackagerOptions extends electronPackager.Options {
portable: boolean;
platform: string;
targetUrl: string;
upgrade: boolean;
upgradeFrom?: string;
}
export interface AppOptions {
packager: ElectronPackagerOptions;
nativefier: {
accessibilityPrompt: boolean;
alwaysOnTop: boolean;
backgroundColor: string;
basicAuthPassword: string;
basicAuthUsername: string;
bookmarksMenu: string;
bounce: boolean;
browserwindowOptions: any;
clearCache: boolean;
counter: boolean;
crashReporter: string;
disableContextMenu: boolean;
disableDevTools: boolean;
disableGpu: boolean;
disableOldBuildWarning: boolean;
diskCacheSize: number;
electronVersionUsed?: string;
enableEs3Apis: boolean;
fastQuit: boolean;
fileDownloadOptions: any;
flashPluginDir: string;
fullScreen: boolean;
globalShortcuts: any;
hideWindowFrame: boolean;
ignoreCertificate: boolean;
ignoreGpuBlacklist: boolean;
inject: string[];
insecure: boolean;
internalUrls: string;
blockExternalUrls: boolean;
maximize: boolean;
nativefierVersion: string;
processEnvs: string;
proxyRules: string;
showMenuBar: boolean;
singleInstance: boolean;
titleBarStyle: string;
tray: string | boolean;
userAgent: string;
userAgentOverriden: boolean;
verbose: boolean;
versionString: string;
width: number;
widevine: boolean;
height: number;
minWidth: number;
minHeight: number;
maxWidth: number;
maxHeight: number;
x: number;
y: number;
zoom: number;
};
}
export type NativefierOptions = Partial<
AppOptions['packager'] & AppOptions['nativefier']
>;