build.debian.amd64 628 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. #= Debian 10+ amd64 .deb
  3. set -o errexit
  4. set -o xtrace
  5. # Move to source directory
  6. pushd ${SOURCE_DIR}
  7. if [[ ${IS_DOCKER} == YES ]]; then
  8. # Remove build-dep for dotnet-sdk-3.1, since it's installed manually
  9. cp -a debian/control /tmp/control.orig
  10. sed -i '/dotnet-sdk-3.1,/d' debian/control
  11. fi
  12. # Build DEB
  13. dpkg-buildpackage -us -uc --pre-clean --post-clean
  14. mkdir -p ${ARTIFACT_DIR}/
  15. mv ../jellyfin*.{deb,dsc,tar.gz,buildinfo,changes} ${ARTIFACT_DIR}/
  16. if [[ ${IS_DOCKER} == YES ]]; then
  17. cp -a /tmp/control.orig debian/control
  18. chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}
  19. fi
  20. popd