()
| 11 | } |
| 12 | |
| 13 | function 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 | |
| 42 | function validateFilesPresent(pathsToVerify) { |
| 43 | // This script verifies after pacakging that necessary files are in the correct locations |
no outgoing calls
no test coverage detected