aboutsummaryrefslogtreecommitdiff
path: root/deployment/old/macos/docker-build.sh
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2020-04-09 11:49:14 -0400
committerJoshua M. Boniface <joshua@boniface.me>2020-04-09 11:49:14 -0400
commited735522cfd4ab8edfd7be2e4f6ce52856eb43cd (patch)
tree249b220c381d5881f8f21985adfe20c47340fe96 /deployment/old/macos/docker-build.sh
parent406d087a465dd62ad376124fcb53692b1f666aef (diff)
Revert "Remove old stuff"
This reverts commit b9fdd96ece39a6ff0f4ff37ecba36d7a0f65fcba.
Diffstat (limited to 'deployment/old/macos/docker-build.sh')
-rwxr-xr-xdeployment/old/macos/docker-build.sh36
1 files changed, 36 insertions, 0 deletions
diff --git a/deployment/old/macos/docker-build.sh b/deployment/old/macos/docker-build.sh
new file mode 100755
index 000000000..f9417388d
--- /dev/null
+++ b/deployment/old/macos/docker-build.sh
@@ -0,0 +1,36 @@
+#!/bin/bash
+
+# Builds the TAR archive inside the Docker container
+
+set -o errexit
+set -o xtrace
+
+# Move to source directory
+pushd ${SOURCE_DIR}
+
+# Clone down and build Web frontend
+web_build_dir="$( mktemp -d )"
+web_target="${SOURCE_DIR}/MediaBrowser.WebDashboard/jellyfin-web"
+git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
+pushd ${web_build_dir}
+if [[ -n ${web_branch} ]]; then
+ checkout -b origin/${web_branch}
+fi
+yarn install
+mkdir -p ${web_target}
+mv dist/* ${web_target}/
+popd
+rm -rf ${web_build_dir}
+
+# Get version
+version="$( grep "version:" ./build.yaml | sed -E 's/version: "([0-9\.]+.*)"/\1/' )"
+
+# Build archives
+dotnet publish Jellyfin.Server --configuration Release --self-contained --runtime osx-x64 --output /dist/jellyfin_${version}/ "-p:GenerateDocumentationFile=false;DebugSymbols=false;DebugType=none;UseAppHost=true"
+tar -cvzf /jellyfin_${version}.portable.tar.gz -C /dist jellyfin_${version}
+rm -rf /dist/jellyfin_${version}
+
+# Move the artifacts out
+mkdir -p ${ARTIFACT_DIR}/
+mv /jellyfin[-_]*.tar.gz ${ARTIFACT_DIR}/
+chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}