From a3a0275bdc0f4f52a70d9c124eb4947a9bcff45f Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sun, 21 Sep 2025 16:25:37 +0300 Subject: [PATCH] Update package version to 0.25.9 --- check-version.sh | 12 ++++++++++++ pkg.info | 3 +-- source.sh | 4 +++- 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 check-version.sh diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..1cc45a5 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Github repository +REPO="tree-sitter/tree-sitter" + +# Get tag name using Github Rest API +TAG_NAME=$(curl -s -L -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/"$REPO"/releases/latest | jq -r '.tag_name') + +# Trim 'v' character in TAG_NAME variable +VERSION=$(echo "$TAG_NAME" | tr -d 'v') + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index c1ed086..cd39397 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,6 @@ name: tree-sitter description: An incremental parsing system for programming tools -version: 0.25.3 -revision: 2 +version: 0.25.9 url: https://github.com/tree-sitter/tree-sitter license: MIT architecture: any diff --git a/source.sh b/source.sh index 269ebe5..16e7d6f 100644 --- a/source.sh +++ b/source.sh @@ -10,6 +10,9 @@ FILENAME="${DOWNLOAD##*/}" prepare() { wget "$DOWNLOAD" tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE" + + cd "$BPM_SOURCE"/cli + cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" } # The build function is executed in the source directory @@ -25,7 +28,6 @@ build() { # Build command-line interface cd "$BPM_SOURCE"/cli - cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" cargo build --release --locked --offline }