ucap-electron/projects/updater-window/src/lib/models/updater-window-options.ts
2020-03-27 17:41:40 +09:00

22 lines
515 B
TypeScript

import { BrowserWindowConstructorOptions } from 'electron';
export interface UpdaterWindowOptions extends BrowserWindowConstructorOptions {
templatePath?: string;
onReady?: () => void;
onAcceptUpdate?: () => void;
onDenyUpdate?: () => void;
onCancelDownload?: () => void;
}
export const DefaultUpdaterWindowOptions: UpdaterWindowOptions = {
width: 500,
height: 160,
frame: false,
skipTaskbar: true,
alwaysOnTop: true,
maximizable: false,
webPreferences: {
nodeIntegration: true
}
};