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