aboutsummaryrefslogtreecommitdiff
path: root/portable
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2024-02-11 16:47:03 -0500
committerJoshua M. Boniface <joshua@boniface.me>2024-02-11 16:47:03 -0500
commite339eee1b9aeb0ce2000c4adb61c00f4c0d981fa (patch)
treeadf390a1fd9f7fb99d32ee41ae982fc5a8e953f3 /portable
parentAdd portable linux build (diff)
downloadjellyfin-packaging-e339eee1b9aeb0ce2000c4adb61c00f4c0d981fa.tar.gz
jellyfin-packaging-e339eee1b9aeb0ce2000c4adb61c00f4c0d981fa.tar.bz2
jellyfin-packaging-e339eee1b9aeb0ce2000c4adb61c00f4c0d981fa.zip
Combine all portable archive builds
Diffstat (limited to 'portable')
-rwxr-xr-xportable/build.sh18
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
bgstack15