move to bb64
Some checks failed
Dropshell Test / Build_and_Test (push) Has been cancelled

This commit is contained in:
Your Name
2025-05-12 23:08:56 +12:00
parent 8fc3384c03
commit d946c18d7c
14 changed files with 120 additions and 61 deletions

View File

@ -24,6 +24,37 @@ check_prerequisites() {
done
}
install_bb64() {
# install bb64 into EXECUTABLES
_check_required_env_vars EXECUTABLES
ARCH=$(uname -m)
if [[ "$ARCH" == "x86_64" ]]; then
BIN=bb64.amd64
elif [[ "$ARCH" == "aarch64" || "$ARCH" == "arm64" ]]; then
BIN=bb64.arm64
else
echo "Unsupported architecture: $ARCH" >&2
exit 1
fi
# create the executables directory if it doesn't exist
mkdir -p ${EXECUTABLES}
# download bb64
if ! curl -fsSL https://gitea.jde.nz/public/bb64/releases/download/latest/bb64.${ARCH} -o ${EXECUTABLES}/bb64; then
echo "Failed to download bb64 for architecture: $ARCH" >&2
exit 1
fi
chmod +x ${EXECUTABLES}/bb64
}
check_prerequisites
# install bb64
install_bb64
exit 0