diff options
author | Joshua M. Boniface <joshua@boniface.me> | 2024-02-11 16:47:03 -0500 |
---|---|---|
committer | Joshua M. Boniface <joshua@boniface.me> | 2024-02-11 16:47:03 -0500 |
commit | e339eee1b9aeb0ce2000c4adb61c00f4c0d981fa (patch) | |
tree | adf390a1fd9f7fb99d32ee41ae982fc5a8e953f3 /portable | |
parent | Add portable linux build (diff) | |
download | jellyfin-packaging-e339eee1b9aeb0ce2000c4adb61c00f4c0d981fa.tar.gz jellyfin-packaging-e339eee1b9aeb0ce2000c4adb61c00f4c0d981fa.tar.bz2 jellyfin-packaging-e339eee1b9aeb0ce2000c4adb61c00f4c0d981fa.zip |
Combine all portable archive builds
Diffstat (limited to 'portable')
-rwxr-xr-x | portable/build.sh | 18 |
1 files changed, 14 insertions, 4 deletions
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 |