aboutsummaryrefslogtreecommitdiff
path: root/deployment/build.macos
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2020-06-13 13:03:09 -0600
committercrobibero <cody@robibe.ro>2020-06-13 13:03:09 -0600
commit829eb1a8494b3d0a4a5170f5942f33920f179e73 (patch)
tree50acc3d0800da593aac0a252dad6226c73f3c1d5 /deployment/build.macos
parentd975ad155e7857bcbfcf55246fd78dd87ed594ca (diff)
parent403cd3205ffb970cfda88b6c49dc69127fada798 (diff)
merge master into api-migration
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