aboutsummaryrefslogtreecommitdiff
path: root/deployment/ubuntu-package-arm64/docker-build.sh
diff options
context:
space:
mode:
authorJoshua Boniface <joshua@boniface.me>2019-09-24 23:17:11 -0400
committerJoshua Boniface <joshua@boniface.me>2019-09-24 23:17:11 -0400
commitbe3b05df68952e74291baaaa589818b51bc73f79 (patch)
tree3e7e0dd82953aa1ed6e57485629167ac9a43befb /deployment/ubuntu-package-arm64/docker-build.sh
parent601a50e430ba18ae4c05b0fee9a31602b2fe3e05 (diff)
Add web build to Ubuntu arm64 package build
Diffstat (limited to 'deployment/ubuntu-package-arm64/docker-build.sh')
-rwxr-xr-xdeployment/ubuntu-package-arm64/docker-build.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/deployment/ubuntu-package-arm64/docker-build.sh b/deployment/ubuntu-package-arm64/docker-build.sh
index 1c75ece8eb..acf6ac0132 100755
--- a/deployment/ubuntu-package-arm64/docker-build.sh
+++ b/deployment/ubuntu-package-arm64/docker-build.sh
@@ -11,6 +11,20 @@ pushd ${SOURCE_DIR}
# Remove build-dep for dotnet-sdk-2.2, since it's not a package in this image
sed -i '/dotnet-sdk-2.2,/d' debian/control
+# 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
+yarn build
+mkdir -p ${web_target}
+mv dist/* ${web_target}/
+popd
+
# Build DEB
export CONFIG_SITE=/etc/dpkg-cross/cross-config.${ARCH}
dpkg-buildpackage -us -uc -aarm64