Remove package sources and host only the expected SHA-256 #3

Merged
sgraves merged 27 commits from v2-develop into main 2025-12-13 09:35:34 -06:00
Showing only changes of commit a5ed2a2668 - Show all commits

View File

@@ -38,13 +38,16 @@ BRANCH=$(git branch --show-current)
RELEASE=$(grep PROJECT_RELEASE_ITER= ./config.sh | ${SED} s/PROJECT_RELEASE_ITER=//g) RELEASE=$(grep PROJECT_RELEASE_ITER= ./config.sh | ${SED} s/PROJECT_RELEASE_ITER=//g)
popd popd
if [ "${BRANCH}" == "master" ] || [ "${BRANCH}" == "alpha" ] || if [[ "${BRANCH}" =~ ^(master|main|release)$ ]] ||
[ "${BRANCH}" == "main" ] || [ "${BRANCH}" == "release" ] || [[ "${BRANCH}" =~ ^(alpha|beta|rc)(\.[0-9]+)?$ ]]; then
[ "${BRANCH}" == "beta" ] || [ "${BRANCH}" == "rc" ]; then DEST_DIR="${DEST_DIR}/$([[ "${BRANCH}" =~ ^(master|main|release)$ ]] &&
DEST_DIR=${DEST_DIR}/${RELEASE} printf '%s' "${RELEASE}" ||
elif [[ ${BRANCH} = *'-alpha-'* ]] || [[ ${BRANCH} = *'-beta-'* ]] || printf '%s' "${BRANCH%%.*}")"
[[ ${BRANCH} = *'-rc-'* ]] || [[ ${BRANCH} = *'-release-'* ]]; then elif [[ "${BRANCH}" == *"-alpha-"* ]] || [[ "${BRANCH}" == *"-beta-"* ]] ||
DEST_DIR=${DEST_DIR}/nightly [[ "${BRANCH}" == *"-rc-"* ]] || [[ "${BRANCH}" == *"-release-"* ]] ||
[[ "${BRANCH}" == *"-alpha."* ]] || [[ "${BRANCH}" == *"-beta."* ]] ||
[[ "${BRANCH}" == *"-rc."* ]]; then
DEST_DIR="${DEST_DIR}/nightly"
else else
error_exit "skipping ${PROJECT_FILE_PART}" 0 error_exit "skipping ${PROJECT_FILE_PART}" 0
fi fi