aboutsummaryrefslogtreecommitdiff
path: root/portable/build.sh
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2024-02-15 00:54:10 -0500
committerJoshua M. Boniface <joshua@boniface.me>2024-02-15 00:54:10 -0500
commit44d014bd120fc565070041a13f8bd840c97d65d5 (patch)
treeedfeb73fad347d459d646668f1cfadca657800dd /portable/build.sh
parentUse better error handling in scripts (diff)
downloadjellyfin-packaging-44d014bd120fc565070041a13f8bd840c97d65d5.tar.gz
jellyfin-packaging-44d014bd120fc565070041a13f8bd840c97d65d5.tar.bz2
jellyfin-packaging-44d014bd120fc565070041a13f8bd840c97d65d5.zip
Fix version suffixing without PARCH
Diffstat (limited to 'portable/build.sh')
-rwxr-xr-xportable/build.sh10
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
bgstack15