diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2019-09-26 22:24:41 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-26 22:24:41 -0400 |
| commit | e4d5e5bf91ca3129b4701463ed5c6bdce5b2115b (patch) | |
| tree | dd8aefa0c4116ed18a212f6d147bd90f75b0f864 /deployment/macos/docker-build.sh | |
| parent | bae5e3795ecaf8dee7f2a48e2e8c2ebaae9786e8 (diff) | |
| parent | 547a6121b05cf55c344e182fa29140dba52c23a3 (diff) | |
Merge pull request #1793 from joshuaboniface/fix-build
Clean up and update builds to use new jellyfin-web
Diffstat (limited to 'deployment/macos/docker-build.sh')
| -rwxr-xr-x | deployment/macos/docker-build.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/deployment/macos/docker-build.sh b/deployment/macos/docker-build.sh new file mode 100755 index 000000000..1b4a554e6 --- /dev/null +++ b/deployment/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 --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} |
