MCPcopy Create free account
hub / github.com/continuedev/continue / autodetectPlatformAndArch

Function autodetectPlatformAndArch

binary/test/binary.test.ts:130–159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128const USE_TCP = false;
129
130function autodetectPlatformAndArch() {
131 const platform = {
132 aix: "linux",
133 darwin: "darwin",
134 freebsd: "linux",
135 linux: "linux",
136 openbsd: "linux",
137 sunos: "linux",
138 win32: "win32",
139 android: "linux",
140 cygwin: "win32",
141 netbsd: "linux",
142 haiku: "linux",
143 }[process.platform];
144 const arch = {
145 arm: "arm64",
146 arm64: "arm64",
147 ia32: "x64",
148 loong64: "arm64",
149 mips: "arm64",
150 mipsel: "arm64",
151 ppc: "x64",
152 ppc64: "x64",
153 riscv64: "arm64",
154 s390: "x64",
155 s390x: "x64",
156 x64: "x64",
157 }[process.arch];
158 return [platform, arch];
159}
160
161const CONTINUE_GLOBAL_DIR = path.join(__dirname, "..", ".continue");
162if (fs.existsSync(CONTINUE_GLOBAL_DIR)) {

Callers 2

binary.test.tsFile · 0.70
downloadNodeSqliteFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected