chore: log build command (#639)

This commit is contained in:
yetone 2024-09-26 11:47:54 +08:00 committed by GitHub
parent 272b60f050
commit f2cec70d4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash
set -e
REPO_OWNER="yetone"
REPO_NAME="avante.nvim"
@ -51,6 +53,8 @@ ARTIFACT_NAME_PATTERN="avante_lib-$PLATFORM-$ARCH-$LUA_VERSION"
# Get the artifact download URL
ARTIFACT_URL=$(curl -s "https://api.github.com/repos/yetone/avante.nvim/releases/latest" | grep "browser_download_url" | cut -d '"' -f 4 | grep $ARTIFACT_NAME_PATTERN)
set -x
mkdir -p "$TARGET_DIR"
curl -L "$ARTIFACT_URL" | tar -zxv -C "$TARGET_DIR"