diff options
author | Joshua M. Boniface <joshua@boniface.me> | 2024-02-15 00:54:10 -0500 |
---|---|---|
committer | Joshua M. Boniface <joshua@boniface.me> | 2024-02-15 00:54:10 -0500 |
commit | 44d014bd120fc565070041a13f8bd840c97d65d5 (patch) | |
tree | edfeb73fad347d459d646668f1cfadca657800dd /portable | |
parent | Use better error handling in scripts (diff) | |
download | jellyfin-packaging-44d014bd120fc565070041a13f8bd840c97d65d5.tar.gz jellyfin-packaging-44d014bd120fc565070041a13f8bd840c97d65d5.tar.bz2 jellyfin-packaging-44d014bd120fc565070041a13f8bd840c97d65d5.zip |
Fix version suffixing without PARCH
Diffstat (limited to 'portable')
-rwxr-xr-x | portable/build.sh | 10 |
1 files changed, 8 insertions, 2 deletions
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 |