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

Function autodetectPlatformAndArch

scripts/util/index.js:13–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11}
12
13function autodetectPlatformAndArch() {
14 platform = {
15 aix: "linux",
16 alpine: "linux",
17 darwin: "darwin",
18 freebsd: "linux",
19 linux: "linux",
20 openbsd: "linux",
21 sunos: "linux",
22 win32: "win32",
23 }[process.platform];
24 arch = {
25 arm: "arm64",
26 armhf: "arm64",
27 arm64: "arm64",
28 ia32: "x64",
29 loong64: "arm64",
30 mips: "arm64",
31 mipsel: "arm64",
32 ppc: "x64",
33 ppc64: "x64",
34 riscv64: "arm64",
35 s390: "x64",
36 s390x: "x64",
37 x64: "x64",
38 }[process.arch];
39 return [platform, arch];
40}
41
42function validateFilesPresent(pathsToVerify) {
43 // This script verifies after pacakging that necessary files are in the correct locations

Callers 2

prepackage.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected