ripgrep_linux_loong64.sh 551 B

1234567891011
  1. # When installing @vscode/ripgrep, it will try to download prebuilt ripgrep binary from https://github.com/microsoft/ripgrep-prebuilt,
  2. # however, loong64 is not a supported architecture and x86 will be picked as fallback, so we need to replace it with a native one.
  3. RG_PATH="node_modules/@vscode/ripgrep/bin/rg"
  4. RG_VERSION="14.1.1"
  5. echo "Replacing ripgrep binary with loong64 one"
  6. rm "${RG_PATH}"
  7. curl --silent --fail -L https://github.com/darkyzhou/ripgrep-loongarch64-musl/releases/download/${RG_VERSION}/rg -o "${RG_PATH}"
  8. chmod +x "${RG_PATH}"