mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-11-22 06:23:00 -05:00
* Fix fedora
* Fix RID Linux
* Fix package and image versions
* Fix buildling and optimize docker images
```
* Removed find obj
* Changed curl command and added gpg
* Added to Contributors
* Removed apt-transport-https package
* Removed RASPI
* Update Intel drivers version
* Update Dockerfile for CentOS, Fedora, and portable deployments
- Changed Jammy docker image to Built-in Jammy Microsoft .NET SDK image
- Switched from using "Yum" to "Dnf" for CentOS and Fedora
- Added "dnf clean all" and "rm -rf /var/cache/dnf" to the end of CentOS and Fedora Dockerfiles
- Added "apt-get clean", "apt-get autoremove", "rm -rf /var/lib/apt/lists/*" to the end of the Debian/Ubuntu Dockerfiles
- Added ${DOTNET_VERSION} in every Dockerfile except CentOS/Fedora
- Removed previous warning comment for dotnet publish build in parallel
- Arranged package installation
* Re-arranged Dockerfile package installation
* Re-align
* Remove curl
* Remove curl
45 lines
1.2 KiB
Bash
Executable File
45 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
#= Debian 10+ arm64 .deb
|
|
|
|
set -o errexit
|
|
set -o xtrace
|
|
|
|
# Move to source directory
|
|
pushd "${SOURCE_DIR}"
|
|
|
|
if [[ ${IS_DOCKER} == YES ]]; then
|
|
# Remove build-dep for dotnet-sdk-8.0, since it's installed manually
|
|
cp -a debian/control /tmp/control.orig
|
|
sed -i '/dotnet-sdk-8.0,/d' debian/control
|
|
fi
|
|
|
|
# Modify changelog to unstable configuration if IS_UNSTABLE
|
|
if [[ ${IS_UNSTABLE} == 'yes' ]]; then
|
|
pushd debian
|
|
PR_ID=$( git log --grep 'Merge pull request' --oneline --single-worktree --first-parent | head -1 | grep --color=none -Eo '#[0-9]+' | tr -d '#' )
|
|
|
|
cat <<EOF >changelog
|
|
jellyfin-server (${BUILD_ID}-unstable) unstable; urgency=medium
|
|
|
|
* Jellyfin Server unstable build ${BUILD_ID} for merged PR #${PR_ID}
|
|
|
|
-- Jellyfin Packaging Team <packaging@jellyfin.org> $( date --rfc-2822 )
|
|
EOF
|
|
popd
|
|
fi
|
|
|
|
# Build DEB
|
|
export CONFIG_SITE=/etc/dpkg-cross/cross-config.${ARCH}
|
|
dpkg-buildpackage -us -uc -a arm64 --pre-clean --post-clean
|
|
|
|
mkdir -p "${ARTIFACT_DIR}/"
|
|
mv ../jellyfin*.{deb,dsc,tar.gz,buildinfo,changes} "${ARTIFACT_DIR}/"
|
|
|
|
if [[ ${IS_DOCKER} == YES ]]; then
|
|
cp -a /tmp/control.orig debian/control
|
|
chown -Rc "$(stat -c %u:%g "${ARTIFACT_DIR}")" "${ARTIFACT_DIR}"
|
|
fi
|
|
|
|
popd
|