aboutsummaryrefslogtreecommitdiff
path: root/deployment/build.macos
diff options
context:
space:
mode:
authorVasily <JustAMan@users.noreply.github.com>2020-04-30 00:55:38 +0300
committerGitHub <noreply@github.com>2020-04-30 00:55:38 +0300
commit655a3ac54b9e3324aab2f81db95241626e6890a9 (patch)
treeb2ff47f2aff11a816e24832dc9c30f4eca36ad1b /deployment/build.macos
parent690fb65cd89d619cab168a871cbdfdfd12120009 (diff)
parent8c9604afba027baed71ad5f0775679228869f079 (diff)
Merge pull request #2656 from joshuaboniface/improve-builds
Improve builds
Diffstat (limited to 'deployment/build.macos')
-rwxr-xr-xdeployment/build.macos27
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