MCPcopy
hub / github.com/desktop/desktop / startApp

Function startApp

script/start.ts:25–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23}
24
25function startApp() {
26 const runningApp = run({ stdio: 'inherit' })
27 if (runningApp == null) {
28 console.error(
29 "Couldn't launch the app. You probably need to build it first. Run `yarn build:dev`."
30 )
31 process.exit(1)
32 }
33
34 runningApp.on('close', () => {
35 process.exit(0)
36 })
37}
38
39if (process.env.NODE_ENV === 'production') {
40 startApp()

Callers 1

start.tsFile · 0.85

Calls 3

runFunction · 0.90
errorMethod · 0.80
onMethod · 0.65

Tested by

no test coverage detected