aboutsummaryrefslogtreecommitdiff
path: root/deployment/build.linux.arm64
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2020-12-19 23:06:34 +0100
committerGitHub <noreply@github.com>2020-12-19 23:06:34 +0100
commit2e8e96874f75bc393a67eed36b034e8636e4f0ac (patch)
tree5b532da40e396f9d0172724b920c1bea49927aa2 /deployment/build.linux.arm64
parent07ee98b65f3933770aedca3cf995d1dc0c3f39e0 (diff)
parent704d627f3a14b879a6e2fae363474a308079c8bb (diff)
Merge pull request #4828 from joshuaboniface/linux-alt-arch
Diffstat (limited to 'deployment/build.linux.arm64')
-rwxr-xr-xdeployment/build.linux.arm6431
1 files changed, 31 insertions, 0 deletions
diff --git a/deployment/build.linux.arm64 b/deployment/build.linux.arm64
new file mode 100755
index 000000000..e362607a7
--- /dev/null
+++ b/deployment/build.linux.arm64
@@ -0,0 +1,31 @@
+#!/bin/bash
+
+#= Generic Linux arm64 .tar.gz
+
+set -o errexit
+set -o xtrace
+
+# Move to source directory
+pushd ${SOURCE_DIR}
+
+# Get version
+if [[ ${IS_UNSTABLE} == 'yes' ]]; then
+ version="${BUILD_ID}"
+else
+ version="$( grep "version:" ./build.yaml | sed -E 's/version: "([0-9\.]+.*)"/\1/' )"
+fi
+
+# Build archives
+dotnet publish Jellyfin.Server --configuration Release --self-contained --runtime linux-arm64 --output dist/jellyfin-server_${version}/ "-p:DebugSymbols=false;DebugType=none;UseAppHost=true"
+tar -czf jellyfin-server_${version}_linux-arm64.tar.gz -C dist jellyfin-server_${version}
+rm -rf dist/jellyfin-server_${version}
+
+# Move the artifacts out
+mkdir -p ${ARTIFACT_DIR}/
+mv jellyfin[-_]*.tar.gz ${ARTIFACT_DIR}/
+
+if [[ ${IS_DOCKER} == YES ]]; then
+ chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}
+fi
+
+popd