From 44d014bd120fc565070041a13f8bd840c97d65d5 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 15 Feb 2024 00:54:10 -0500 Subject: Fix version suffixing without PARCH --- portable/build.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'portable') diff --git a/portable/build.sh b/portable/build.sh index 929327e..b8bb2ce 100755 --- a/portable/build.sh +++ b/portable/build.sh @@ -36,14 +36,20 @@ popd mkdir -p "${ARTIFACT_DIR}/" +if [[ -n ${PARCH} ]]; then + VERSION_SUFFIX="${JVERS}-${PARCH}" +else + VERSION_SUFFIX="${JVERS}" +fi + pushd ${BUILD_DIR} for ARCHIVE_TYPE in $( tr ',' '\n' <<<"${ARCHIVE_TYPES}" ); do case ${ARCHIVE_TYPE} in tar) - tar -czf "${ARTIFACT_DIR}"/jellyfin_${JVERS}-${PARCH}.tar.gz . + tar -czf "${ARTIFACT_DIR}"/jellyfin_${VERSION_SUFFIX}.tar.gz . ;; zip) - zip -qr "${ARTIFACT_DIR}"/jellyfin_${JVERS}-${PARCH}.zip . + zip -qr "${ARTIFACT_DIR}"/jellyfin_${VERSION_SUFFIX}.zip . ;; esac done -- cgit