mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-03-20 12:11:28 -07:00
21 lines
775 B
TypeScript
21 lines
775 B
TypeScript
import type { AppLifecycleRuntimeRunnerParams } from '../startup-lifecycle';
|
|
|
|
export function createBuildAppLifecycleRuntimeRunnerMainDepsHandler(
|
|
deps: AppLifecycleRuntimeRunnerParams,
|
|
) {
|
|
return (): AppLifecycleRuntimeRunnerParams => ({
|
|
app: deps.app,
|
|
platform: deps.platform,
|
|
shouldStartApp: deps.shouldStartApp,
|
|
parseArgs: deps.parseArgs,
|
|
handleCliCommand: deps.handleCliCommand,
|
|
printHelp: deps.printHelp,
|
|
logNoRunningInstance: deps.logNoRunningInstance,
|
|
onReady: deps.onReady,
|
|
onWillQuitCleanup: deps.onWillQuitCleanup,
|
|
shouldRestoreWindowsOnActivate: deps.shouldRestoreWindowsOnActivate,
|
|
restoreWindowsOnActivate: deps.restoreWindowsOnActivate,
|
|
shouldQuitOnWindowAllClosed: deps.shouldQuitOnWindowAllClosed,
|
|
});
|
|
}
|