diff options
| author | Bond-009 <bond.009@outlook.com> | 2020-12-19 23:06:34 +0100 |
|---|---|---|
| committer | Joshua M. Boniface <joshua@boniface.me> | 2020-12-30 18:55:51 -0500 |
| commit | 8884f4f2885226999f49e91bd73b3b0f07684a7d (patch) | |
| tree | 0e07fd9037d38314089bcc7810a94dc0b2a7a58b /deployment/build.linux.armhf | |
| parent | ce741f541c9e3da62260c133dd66626a15faae71 (diff) | |
Merge pull request #4828 from joshuaboniface/linux-alt-arch
(cherry picked from commit 2e8e96874f75bc393a67eed36b034e8636e4f0ac)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
Diffstat (limited to 'deployment/build.linux.armhf')
| -rwxr-xr-x | deployment/build.linux.armhf | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/deployment/build.linux.armhf b/deployment/build.linux.armhf new file mode 100755 index 0000000000..c0d0607fc7 --- /dev/null +++ b/deployment/build.linux.armhf @@ -0,0 +1,31 @@ +#!/bin/bash + +#= Generic Linux armhf .tar.gz + +set -o errexit +set -o xtrace + +# Move to source directory +pushd ${SOURCE_DIR} + +# Get version +if [[ ${IS_UNSTABLE} == 'yes' ]]; then + version="${BUILD_ID}" +else + version="$( grep "version:" ./build.yaml | sed -E 's/version: "([0-9\.]+.*)"/\1/' )" +fi + +# Build archives +dotnet publish Jellyfin.Server --configuration Release --self-contained --runtime linux-arm --output dist/jellyfin-server_${version}/ "-p:DebugSymbols=false;DebugType=none;UseAppHost=true" +tar -czf jellyfin-server_${version}_linux-armhf.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 |
