()
| 165 | } |
| 166 | |
| 167 | export function getTunwgPath(): string { |
| 168 | const isWin = platform() === 'win32'; |
| 169 | const tunwgBinary = isWin ? 'tunwg.exe' : 'tunwg'; |
| 170 | |
| 171 | if (isBunCompiled()) { |
| 172 | return join(runtimePath(), 'tools', 'tunwg', tunwgBinary); |
| 173 | } |
| 174 | |
| 175 | // Development mode: use downloaded binary from shared/tools/tunwg |
| 176 | const platformDir = getPlatformDir(); |
| 177 | const devBinaryName = isWin ? `tunwg-${platformDir}.exe` : `tunwg-${platformDir}`; |
| 178 | return join(__dirname, '..', '..', '..', 'shared', 'tools', 'tunwg', devBinaryName); |
| 179 | } |
nothing calls this directly
no test coverage detected