mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-03-21 00:11:27 -07:00
feat(core): add Electron runtime, services, and app composition
This commit is contained in:
20
src/main/runtime/startup-lifecycle-main-deps.ts
Normal file
20
src/main/runtime/startup-lifecycle-main-deps.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
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,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user