From 7fc300c04e940fc114bfdc213e8c2b367dd6ab3d Mon Sep 17 00:00:00 2001 From: EnumDev Date: Fri, 5 Sep 2025 14:42:09 +0300 Subject: [PATCH] Update URL and download --- check-version.sh | 10 +++++----- pkg.info | 5 +++-- source.sh | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/check-version.sh b/check-version.sh index a5fce21..dd17a03 100644 --- a/check-version.sh +++ b/check-version.sh @@ -1,9 +1,9 @@ #!/bin/bash -# Gitea repository -REPO="EnumDev/bpm" +# Github repository +REPO="EnumeratedDev/bpm" -# Get version from tag name using Gitea Rest API -VERSION=$(curl -s -L https://git.enumerated.dev/api/v1/repos/$REPO/tags/ | jq -r '.[0]'.name) +# Get tag name using Github Rest API +TAG_NAME=$(curl -s -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/"$REPO"/tags | jq -r '.[0].name') -echo "$VERSION" +echo "$TAG_NAME" diff --git a/pkg.info b/pkg.info index a138c80..e9e422b 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,8 @@ name: bpm -description: A simple Linux package manager +description: The official package manager for Tide Linux version: 0.5.0 -url: https://git.enumerated.dev/EnumDev/bpm +revision: 2 +url: https://github.com/EnumeratedDev/bpm license: MIT architecture: any depends: ["bash"] diff --git a/source.sh b/source.sh index 97602ba..5f1eac2 100644 --- a/source.sh +++ b/source.sh @@ -2,7 +2,7 @@ # BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT -REPO="https://git.enumerated.dev/EnumDev/bpm.git" +REPO="https://github.com/EnumeratedDev/bpm.git" # The prepare function is executed in the root of the temp directory # This function is used for downloading files and putting them into the correct location