From 4b257b7b4a5b6db49df7e7f26bf9c45e0439ac6d Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Wed, 25 Sep 2019 01:36:20 -0400 Subject: [PATCH] Clean up web_build_dir in docker-build.sh --- deployment/centos-package-x64/docker-build.sh | 1 + deployment/debian-package-arm64/docker-build.sh | 1 + deployment/debian-package-armhf/docker-build.sh | 2 +- deployment/debian-package-x64/docker-build.sh | 1 + deployment/fedora-package-x64/docker-build.sh | 1 + deployment/linux-x64/docker-build.sh | 1 + deployment/macos/docker-build.sh | 1 + deployment/portable/docker-build.sh | 1 + deployment/ubuntu-package-arm64/docker-build.sh | 1 + deployment/ubuntu-package-armhf/docker-build.sh | 1 + deployment/ubuntu-package-x64/docker-build.sh | 1 + deployment/win-x64/docker-build.sh | 2 ++ deployment/win-x86/docker-build.sh | 2 ++ 13 files changed, 15 insertions(+), 1 deletion(-) diff --git a/deployment/centos-package-x64/docker-build.sh b/deployment/centos-package-x64/docker-build.sh index f08b5277d..c97bfb9b4 100755 --- a/deployment/centos-package-x64/docker-build.sh +++ b/deployment/centos-package-x64/docker-build.sh @@ -21,6 +21,7 @@ yarn build mkdir -p ${web_target} mv dist/* ${web_target}/ popd +rm -rf ${web_build_dir} # Build RPM spectool -g -R SPECS/jellyfin.spec diff --git a/deployment/debian-package-arm64/docker-build.sh b/deployment/debian-package-arm64/docker-build.sh index acf6ac013..713cbef34 100755 --- a/deployment/debian-package-arm64/docker-build.sh +++ b/deployment/debian-package-arm64/docker-build.sh @@ -24,6 +24,7 @@ yarn build mkdir -p ${web_target} mv dist/* ${web_target}/ popd +rm -rf ${web_build_dir} # Build DEB export CONFIG_SITE=/etc/dpkg-cross/cross-config.${ARCH} diff --git a/deployment/debian-package-armhf/docker-build.sh b/deployment/debian-package-armhf/docker-build.sh index 4ca3c751f..470bbc75c 100755 --- a/deployment/debian-package-armhf/docker-build.sh +++ b/deployment/debian-package-armhf/docker-build.sh @@ -11,7 +11,6 @@ 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" @@ -25,6 +24,7 @@ yarn build mkdir -p ${web_target} mv dist/* ${web_target}/ popd +rm -rf ${web_build_dir} # Build DEB export CONFIG_SITE=/etc/dpkg-cross/cross-config.${ARCH} diff --git a/deployment/debian-package-x64/docker-build.sh b/deployment/debian-package-x64/docker-build.sh index 544682edf..94286529c 100755 --- a/deployment/debian-package-x64/docker-build.sh +++ b/deployment/debian-package-x64/docker-build.sh @@ -24,6 +24,7 @@ yarn build mkdir -p ${web_target} mv dist/* ${web_target}/ popd +rm -rf ${web_build_dir} # Build DEB dpkg-buildpackage -us -uc diff --git a/deployment/fedora-package-x64/docker-build.sh b/deployment/fedora-package-x64/docker-build.sh index f08b5277d..c97bfb9b4 100755 --- a/deployment/fedora-package-x64/docker-build.sh +++ b/deployment/fedora-package-x64/docker-build.sh @@ -21,6 +21,7 @@ yarn build mkdir -p ${web_target} mv dist/* ${web_target}/ popd +rm -rf ${web_build_dir} # Build RPM spectool -g -R SPECS/jellyfin.spec diff --git a/deployment/linux-x64/docker-build.sh b/deployment/linux-x64/docker-build.sh index 38efe5626..5440b496e 100755 --- a/deployment/linux-x64/docker-build.sh +++ b/deployment/linux-x64/docker-build.sh @@ -21,6 +21,7 @@ yarn build 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/' )" diff --git a/deployment/macos/docker-build.sh b/deployment/macos/docker-build.sh index c56825b8c..0f1701cc2 100755 --- a/deployment/macos/docker-build.sh +++ b/deployment/macos/docker-build.sh @@ -21,6 +21,7 @@ yarn build 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/' )" diff --git a/deployment/portable/docker-build.sh b/deployment/portable/docker-build.sh index 42804e4b0..422587c4c 100755 --- a/deployment/portable/docker-build.sh +++ b/deployment/portable/docker-build.sh @@ -21,6 +21,7 @@ yarn build 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/' )" diff --git a/deployment/ubuntu-package-arm64/docker-build.sh b/deployment/ubuntu-package-arm64/docker-build.sh index acf6ac013..713cbef34 100755 --- a/deployment/ubuntu-package-arm64/docker-build.sh +++ b/deployment/ubuntu-package-arm64/docker-build.sh @@ -24,6 +24,7 @@ yarn build mkdir -p ${web_target} mv dist/* ${web_target}/ popd +rm -rf ${web_build_dir} # Build DEB export CONFIG_SITE=/etc/dpkg-cross/cross-config.${ARCH} diff --git a/deployment/ubuntu-package-armhf/docker-build.sh b/deployment/ubuntu-package-armhf/docker-build.sh index a22b162cd..470bbc75c 100755 --- a/deployment/ubuntu-package-armhf/docker-build.sh +++ b/deployment/ubuntu-package-armhf/docker-build.sh @@ -24,6 +24,7 @@ yarn build mkdir -p ${web_target} mv dist/* ${web_target}/ popd +rm -rf ${web_build_dir} # Build DEB export CONFIG_SITE=/etc/dpkg-cross/cross-config.${ARCH} diff --git a/deployment/ubuntu-package-x64/docker-build.sh b/deployment/ubuntu-package-x64/docker-build.sh index 544682edf..94286529c 100755 --- a/deployment/ubuntu-package-x64/docker-build.sh +++ b/deployment/ubuntu-package-x64/docker-build.sh @@ -24,6 +24,7 @@ yarn build mkdir -p ${web_target} mv dist/* ${web_target}/ popd +rm -rf ${web_build_dir} # Build DEB dpkg-buildpackage -us -uc diff --git a/deployment/win-x64/docker-build.sh b/deployment/win-x64/docker-build.sh index f2092f19e..ea93db7cb 100755 --- a/deployment/win-x64/docker-build.sh +++ b/deployment/win-x64/docker-build.sh @@ -27,6 +27,7 @@ yarn build 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/' )" @@ -43,6 +44,7 @@ cp ${addin_build_dir}/${NSSM_VERSION}/win64/nssm.exe /dist/jellyfin_${version}/n unzip ${addin_build_dir}/ffmpeg.zip -d ${addin_build_dir} cp ${addin_build_dir}/${FFMPEG_VERSION}/bin/ffmpeg.exe /dist/jellyfin_${version}/ffmpeg.exe cp ${addin_build_dir}/${FFMPEG_VERSION}/bin/ffprobe.exe /dist/jellyfin_${version}/ffprobe.exe +rm -rf ${addin_build_dir} # Prepare scripts cp ${SOURCE_DIR}/deployment/windows/legacy/install-jellyfin.ps1 /dist/jellyfin_${version}/install-jellyfin.ps1 diff --git a/deployment/win-x86/docker-build.sh b/deployment/win-x86/docker-build.sh index fced38eab..dd92bb306 100755 --- a/deployment/win-x86/docker-build.sh +++ b/deployment/win-x86/docker-build.sh @@ -27,6 +27,7 @@ yarn build 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/' )" @@ -43,6 +44,7 @@ cp ${addin_build_dir}/${NSSM_VERSION}/win64/nssm.exe /dist/jellyfin_${version}/n unzip ${addin_build_dir}/ffmpeg.zip -d ${addin_build_dir} cp ${addin_build_dir}/${FFMPEG_VERSION}/bin/ffmpeg.exe /dist/jellyfin_${version}/ffmpeg.exe cp ${addin_build_dir}/${FFMPEG_VERSION}/bin/ffprobe.exe /dist/jellyfin_${version}/ffprobe.exe +rm -rf ${addin_build_dir} # Prepare scripts cp ${SOURCE_DIR}/deployment/windows/legacy/install-jellyfin.ps1 /dist/jellyfin_${version}/install-jellyfin.ps1