MCPcopy Create free account
hub / github.com/tiann/hapi / getTunwgPath

Function getTunwgPath

cli/src/runtime/assets.ts:167–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165}
166
167export 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}

Callers

nothing calls this directly

Calls 3

isBunCompiledFunction · 0.90
runtimePathFunction · 0.90
getPlatformDirFunction · 0.70

Tested by

no test coverage detected