diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2020-03-23 18:43:54 -0400 |
|---|---|---|
| committer | Joshua M. Boniface <joshua@boniface.me> | 2020-03-23 18:44:32 -0400 |
| commit | a561d4ca417b45e983bfe46a70397fb44f7b78a3 (patch) | |
| tree | aeae701e118ea3945bb4ca86ede1f012e9dc1509 /deployment/build.macos | |
| parent | b95bd0e67874f925918eb912d445fb202e4fcee0 (diff) | |
Remove arch from macos
Diffstat (limited to 'deployment/build.macos')
| -rwxr-xr-x | deployment/build.macos | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/deployment/build.macos b/deployment/build.macos new file mode 100755 index 000000000..16be29eee --- /dev/null +++ b/deployment/build.macos @@ -0,0 +1,27 @@ +#!/bin/bash + +#= MacOS 10.13+ .tar.gz + +set -o errexit +set -o xtrace + +# Move to source directory +pushd ${SOURCE_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-server_${version}/ "-p:GenerateDocumentationFile=false;DebugSymbols=false;DebugType=none;UseAppHost=true" +tar -czf jellyfin-server_${version}_macos-amd64.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 |
