Update package version to 0.25.9
This commit is contained in:
@@ -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"
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
name: tree-sitter
|
name: tree-sitter
|
||||||
description: An incremental parsing system for programming tools
|
description: An incremental parsing system for programming tools
|
||||||
version: 0.25.3
|
version: 0.25.9
|
||||||
revision: 2
|
|
||||||
url: https://github.com/tree-sitter/tree-sitter
|
url: https://github.com/tree-sitter/tree-sitter
|
||||||
license: MIT
|
license: MIT
|
||||||
architecture: any
|
architecture: any
|
||||||
|
|||||||
@@ -10,6 +10,9 @@ FILENAME="${DOWNLOAD##*/}"
|
|||||||
prepare() {
|
prepare() {
|
||||||
wget "$DOWNLOAD"
|
wget "$DOWNLOAD"
|
||||||
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
|
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
|
# The build function is executed in the source directory
|
||||||
@@ -25,7 +28,6 @@ build() {
|
|||||||
# Build command-line interface
|
# Build command-line interface
|
||||||
cd "$BPM_SOURCE"/cli
|
cd "$BPM_SOURCE"/cli
|
||||||
|
|
||||||
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
|
|
||||||
cargo build --release --locked --offline
|
cargo build --release --locked --offline
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user