feat: loong64 support for client (#2121)

This commit is contained in:
darkyzhou
2024-11-22 21:28:10 +08:00
committed by GitHub
parent 52601b91bf
commit 8bcb412ec5
10 changed files with 48 additions and 6 deletions

View File

@@ -1,7 +1,14 @@
#!/usr/bin/env bash
# When installing @vscode/ripgrep, it will try to download prebuilt ripgrep binary from https://github.com/microsoft/ripgrep-prebuilt,
# however, loong64 is not a supported architecture and x86 will be picked as fallback, so we need to replace it with a native one.
RG_PATH="node_modules/@vscode/ripgrep/bin/rg"
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <path_to_node_modules>"
exit 1
fi
RG_PATH="$1/@vscode/ripgrep/bin/rg"
RG_VERSION="14.1.1"
echo "Replacing ripgrep binary with loong64 one"