mirror of
https://github.com/Pandipipas/scoreko-electron-dev.git
synced 2026-06-06 05:32:06 +00:00
Investigating Electron Startup Failures
This commit is contained in:
@@ -36,7 +36,6 @@ export type ApplicationControllerConfig = {
|
||||
bundleName: string;
|
||||
log: (...args: unknown[]) => void;
|
||||
}) => PreparedNodecgRuntime;
|
||||
relaunch: () => void;
|
||||
scheduleUpdateCheck: (config: {
|
||||
getParentWindow: () => ApplicationWindow | null;
|
||||
beforeInstall: () => Promise<void>;
|
||||
@@ -129,13 +128,6 @@ export function createApplicationController({
|
||||
log: deps.log,
|
||||
});
|
||||
|
||||
if (preparedRuntime.installed && isPackaged) {
|
||||
deps.log("Runtime was installed or refreshed; relaunching Scoreko before starting NodeCG.");
|
||||
deps.relaunch();
|
||||
deps.exit(0);
|
||||
state = "stopped";
|
||||
return;
|
||||
}
|
||||
|
||||
nodecgManager = deps.createNodecgProcessManager(preparedRuntime.runtimePath);
|
||||
|
||||
|
||||
@@ -61,7 +61,6 @@ export function bootstrap(): void {
|
||||
getAllWindows: () => BrowserWindow.getAllWindows(),
|
||||
log,
|
||||
prepareRuntime: prepareUserNodecgRuntime,
|
||||
relaunch: () => app.relaunch(),
|
||||
scheduleUpdateCheck: ({ getParentWindow, beforeInstall }) => {
|
||||
scheduleUpdateCheck({
|
||||
appConfig,
|
||||
|
||||
Reference in New Issue
Block a user