()
| 84 | } |
| 85 | |
| 86 | export 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 | |
| 98 | export const windowsHelperBinaryExists = (): boolean => { |
| 99 | if (!isWindows()) { |
no outgoing calls
no test coverage detected