| 1 | const RIPGREP_VERSION = "14.1.1"; |
| 2 | |
| 3 | /** |
| 4 | * All supported platform-architecture targets |
| 5 | */ |
| 6 | const ALL_TARGETS = [ |
| 7 | "darwin-x64", |
| 8 | "darwin-arm64", |
| 9 | "linux-x64", |
| 10 | "linux-arm64", |
| 11 | "win32-x64", |
| 12 | ]; |
| 13 | |
| 14 | /** |
| 15 | * Mapping from target triplets to ripgrep release file names |
| 16 | */ |
| 17 | const TARGET_TO_RIPGREP_RELEASE = { |
| 18 | "darwin-x64": `ripgrep-${RIPGREP_VERSION}-x86_64-apple-darwin.tar.gz`, |
| 19 | "darwin-arm64": `ripgrep-${RIPGREP_VERSION}-aarch64-apple-darwin.tar.gz`, |
| 20 | "linux-x64": `ripgrep-${RIPGREP_VERSION}-x86_64-unknown-linux-musl.tar.gz`, |
| 21 | "linux-arm64": `ripgrep-${RIPGREP_VERSION}-aarch64-unknown-linux-gnu.tar.gz`, |
| 22 | "win32-x64": `ripgrep-${RIPGREP_VERSION}-x86_64-pc-windows-msvc.zip`, |
| 23 | }; |
| 24 | |
| 25 | /** |
| 26 | * Mapping from target triplets to LanceDB package names |
| 27 | */ |
| 28 | const TARGET_TO_LANCEDB = { |
| 29 | "darwin-arm64": "@lancedb/vectordb-darwin-arm64", |
| 30 | "darwin-x64": "@lancedb/vectordb-darwin-x64", |
| 31 | "linux-arm64": "@lancedb/vectordb-linux-arm64-gnu", |
| 32 | "linux-x64": "@lancedb/vectordb-linux-x64-gnu", |
| 33 | "win32-x64": "@lancedb/vectordb-win32-x64-msvc", |
| 34 | "win32-arm64": "@lancedb/vectordb-win32-arm64-msvc", |
| 35 | }; |
| 36 | |
| 37 | module.exports = { |
| 38 | ALL_TARGETS, |
| 39 | TARGET_TO_RIPGREP_RELEASE, |
| 40 | TARGET_TO_LANCEDB, |
| 41 | RIPGREP_VERSION, |
| 42 | }; |