Modify bb64/publish.sh
This commit is contained in:
@ -112,3 +112,22 @@ done
|
|||||||
echo "Published bb64 version $v to $REPO_URL (tag $TAG) with binaries for $ARCH_ALIAS / $ARCH."
|
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
|
||||||
|
Reference in New Issue
Block a user