MCPcopy
hub / github.com/xpf0000/FlyEnv / getWindowsHelperBinaryPath

Function getWindowsHelperBinaryPath

src/shared/AppHelperCheck.ts:86–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84}
85
86export const getWindowsHelperBinaryPath = (): string => {
87 const staticPath = global.Server.Static ?? ''
88 if (!staticPath) {
89 return ''
90 }
91 if (is.production()) {
92 return join(pathResolve(staticPath, '../../../../'), 'helper/flyenv-helper.exe')
93 }
94 const buildDir = pathResolve(staticPath, '../../../build/')
95 return pathResolve(buildDir, `../src/helper-go/dist/${WINDOWS_HELPER_FILE}`)
96}
97
98export const windowsHelperBinaryExists = (): boolean => {
99 if (!isWindows()) {

Callers 2

commandMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected