mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-09-21 17:29:00 +00:00
74a7d3375d
See discussion at https://github.com/nativefier/nativefier/pull/1124#issuecomment-794751514 : > @TheCleric I was about to merge this, then reconsidered one little thing (yes I wrote "little", I'm not reconsidering this whole thing 😅). > > I'm re-considering having the extra flag. I'm not so sure this will harm a lot of use cases. I'd like to 1. merge this PR, 2. immediately follow up with a small commit removing the flag & adjusting api.md, 3. release with the change well-documented / asking for feedback if this is problematic to anyone. (I'm not asking you any extra work, and like leaving an in-tree commit trace of considering the flag). If people complain with a valid reason, we'll restore the flag with a quick revert, else we're happy with one less flag and a reasonably-handled breaking change. > > Thoughts / objections? Answered by: > That seems reasonable to me. > > [discussion on an extra structured way to pass flags]
65 lines
1.6 KiB
TypeScript
65 lines
1.6 KiB
TypeScript
import * as electronPackager from 'electron-packager';
|
|
|
|
export interface ElectronPackagerOptions extends electronPackager.Options {
|
|
targetUrl: string;
|
|
platform: string;
|
|
}
|
|
|
|
export interface AppOptions {
|
|
packager: ElectronPackagerOptions;
|
|
nativefier: {
|
|
accessibilityPrompt: boolean;
|
|
alwaysOnTop: boolean;
|
|
backgroundColor: string;
|
|
basicAuthPassword: string;
|
|
basicAuthUsername: string;
|
|
bounce: boolean;
|
|
browserwindowOptions: any;
|
|
clearCache: boolean;
|
|
counter: boolean;
|
|
crashReporter: string;
|
|
disableContextMenu: boolean;
|
|
disableDevTools: boolean;
|
|
disableGpu: boolean;
|
|
disableOldBuildWarning: boolean;
|
|
diskCacheSize: number;
|
|
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;
|
|
verbose: boolean;
|
|
versionString: string;
|
|
width: number;
|
|
height: number;
|
|
minWidth: number;
|
|
minHeight: number;
|
|
maxWidth: number;
|
|
maxHeight: number;
|
|
x: number;
|
|
y: number;
|
|
zoom: number;
|
|
};
|
|
}
|
|
|
|
export type NativefierOptions = Partial<
|
|
AppOptions['packager'] & AppOptions['nativefier']
|
|
>;
|