From cdf9abe771df4119e3a7e854c7c2556430c5e810 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Fri, 5 Sep 2025 14:42:23 +0300 Subject: [PATCH] Update URL and download --- check-version.sh | 10 +++++----- pkg.info | 4 ++-- source.sh | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/check-version.sh b/check-version.sh index 1a2f059..4dead1d 100644 --- a/check-version.sh +++ b/check-version.sh @@ -1,9 +1,9 @@ #!/bin/bash -# Gitea repository -REPO="bubble-package-manager/bpm-utils" +# Github repository +REPO="EnumeratedDev/bpm-utils" -# 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 48cdbb4..af98d02 100644 --- a/pkg.info +++ b/pkg.info @@ -1,8 +1,8 @@ name: bpm-utils description: Package utilities for the Bubble Package Manager version: 6.0.0 -revision: 2 -url: https://gitlab.com/bubble-package-manager/bpm-utils +revision: 3 +url: https://github.com/EnumeratedDev/bpm-utils license: MIT architecture: any keep: ["etc/bpm-utils/"] diff --git a/source.sh b/source.sh index 296298b..794923f 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://gitlab.com/bubble-package-manager/bpm-utils.git" +REPO="https://github.com/EnumeratedDev/bpm-utils.git" FILENAME="${DOWNLOAD##*/}" # The prepare function is executed in the root of the temp directory