build.linux.armhf 840 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash
  2. #= Generic Linux armhf .tar.gz
  3. set -o errexit
  4. set -o xtrace
  5. # Move to source directory
  6. pushd ${SOURCE_DIR}
  7. # Get version
  8. if [[ ${IS_UNSTABLE} == 'yes' ]]; then
  9. version="${BUILD_ID}"
  10. else
  11. version="$( grep "version:" ./build.yaml | sed -E 's/version: "([0-9\.]+.*)"/\1/' )"
  12. fi
  13. # Build archives
  14. dotnet publish Jellyfin.Server --configuration Release --self-contained --runtime linux-arm --output dist/jellyfin-server_${version}/ -p:DebugSymbols=false -p:DebugType=none -p:UseAppHost=true
  15. tar -czf jellyfin-server_${version}_linux-armhf.tar.gz -C dist jellyfin-server_${version}
  16. rm -rf dist/jellyfin-server_${version}
  17. # Move the artifacts out
  18. mkdir -p ${ARTIFACT_DIR}/
  19. mv jellyfin[-_]*.tar.gz ${ARTIFACT_DIR}/
  20. if [[ ${IS_DOCKER} == YES ]]; then
  21. chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}
  22. fi
  23. popd