From e339eee1b9aeb0ce2000c4adb61c00f4c0d981fa Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 11 Feb 2024 16:47:03 -0500 Subject: Combine all portable archive builds --- portable/build.sh | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'portable') diff --git a/portable/build.sh b/portable/build.sh index f8a3295..929327e 100755 --- a/portable/build.sh +++ b/portable/build.sh @@ -1,6 +1,6 @@ #!/bin/bash -#= Debian .deb builder +#= Generic portable builder (portable, linux, macos, windows) set -o errexit set -o xtrace @@ -14,7 +14,17 @@ pushd "${SOURCE_DIR}" # Build server pushd jellyfin-server -dotnet publish Jellyfin.Server --configuration Release --output ${BUILD_DIR}/ -p:DebugSymbols=false -p:DebugType=none -p:UseAppHost=false +case ${BTYPE} in + portable) + RUNTIME="" + APPHOST="-p:UseAppHost=false" + ;; + *) + RUNTIME="--self-contained --runtime ${DTYPE}-${DARCH}" + APPHOST="-p:UseAppHost=true" + ;; +esac +dotnet publish Jellyfin.Server --configuration Release ${RUNTIME} --output ${BUILD_DIR}/ -p:DebugSymbols=false -p:DebugType=none ${APPHOST} popd # Build web @@ -30,10 +40,10 @@ pushd ${BUILD_DIR} for ARCHIVE_TYPE in $( tr ',' '\n' <<<"${ARCHIVE_TYPES}" ); do case ${ARCHIVE_TYPE} in tar) - tar -czf "${ARTIFACT_DIR}"/jellyfin_${JVERS}.tar.gz . + tar -czf "${ARTIFACT_DIR}"/jellyfin_${JVERS}-${PARCH}.tar.gz . ;; zip) - zip -qr "${ARTIFACT_DIR}"/jellyfin_${JVERS}.zip . + zip -qr "${ARTIFACT_DIR}"/jellyfin_${JVERS}-${PARCH}.zip . ;; esac done -- cgit