From cb2522decbb3ba72bfd0f50a08547bad9cb0b62c Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 25 Jun 2025 18:37:18 +1200 Subject: [PATCH] Modify bb64/publish.sh --- bb64/publish.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/bb64/publish.sh b/bb64/publish.sh index 3f3d1ad..f89bffe 100755 --- a/bb64/publish.sh +++ b/bb64/publish.sh @@ -112,3 +112,22 @@ done echo "Published bb64 version $v to $REPO_URL (tag $TAG) with binaries for $ARCH_ALIAS / $ARCH." +#-------------------------------------------------------------------------------- +heading "Publishing ${PROJECT} as tool to getpkg.xyz" + +# Create tool directory structure +TOOLDIR="${OUTPUT}/tool" +mkdir "${TOOLDIR}" +cp "${OUTPUT}/${PROJECT}" "${TOOLDIR}/${PROJECT}" + +# Use getpkg to publish the tool +GETPKG="${SCRIPT_DIR}/../getpkg/output/getpkg" +if [ ! -f "$GETPKG" ]; then + GETPKG="${SCRIPT_DIR}/../getpkg/getpkg" +fi + +if [ -f "$GETPKG" ]; then + "${GETPKG}" publish "${PROJECT}:${ARCH}" "${TOOLDIR}" +else + echo "Warning: getpkg not found, skipping tool publishing to getpkg.xyz" +fi