mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-05-24 02:02:29 -04:00
Fix action building (#10899)
* Fix action building * Added required package
This commit is contained in:
parent
5e375888fc
commit
30ab5d5e81
@ -11,11 +11,11 @@ ENV IS_DOCKER=YES
|
||||
|
||||
# Prepare CentOS environment
|
||||
RUN dnf update -yq \
|
||||
&& dnf install -yq epel-release \
|
||||
&& dnf install -yq \
|
||||
rpmdevtools libcurl-devel fontconfig-devel \
|
||||
@buildsys-build rpmdevtools git \
|
||||
dnf-plugins-core libcurl-devel fontconfig-devel \
|
||||
freetype-devel openssl-devel glibc-devel \
|
||||
libicu-devel git wget dnf-plugins-core \
|
||||
libicu-devel systemd wget make \
|
||||
&& dnf clean all \
|
||||
&& rm -rf /var/cache/dnf
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
#= CentOS/RHEL 8+ amd64 .rpm
|
||||
#= CentOS/RHEL 9+ amd64 .rpm
|
||||
|
||||
set -o errexit
|
||||
set -o xtrace
|
||||
@ -10,7 +10,7 @@ pushd "${SOURCE_DIR}"
|
||||
|
||||
if [[ ${IS_DOCKER} == YES ]]; then
|
||||
# Remove BuildRequires for dotnet, since it's installed manually
|
||||
pushd fedora
|
||||
pushd centos
|
||||
|
||||
cp -a jellyfin.spec /tmp/spec.orig
|
||||
sed -i 's/BuildRequires: dotnet/# BuildRequires: dotnet/' jellyfin.spec
|
||||
@ -20,7 +20,7 @@ fi
|
||||
|
||||
# Modify changelog to unstable configuration if IS_UNSTABLE
|
||||
if [[ ${IS_UNSTABLE} == 'yes' ]]; then
|
||||
pushd fedora
|
||||
pushd centos
|
||||
|
||||
PR_ID=$( git log --grep 'Merge pull request' --oneline --single-worktree --first-parent | head -1 | grep --color=none -Eo '#[0-9]+' | tr -d '#' )
|
||||
|
||||
@ -35,7 +35,7 @@ EOF
|
||||
fi
|
||||
|
||||
# Build RPM
|
||||
make -f fedora/Makefile srpm outdir=/root/rpmbuild/SRPMS
|
||||
make -f centos/Makefile srpm outdir=/root/rpmbuild/SRPMS
|
||||
rpmbuild --rebuild -bb /root/rpmbuild/SRPMS/jellyfin-*.src.rpm
|
||||
|
||||
# Move the artifacts out
|
||||
@ -45,10 +45,10 @@ if [[ ${IS_DOCKER} == YES ]]; then
|
||||
chown -Rc "$(stat -c %u:%g "${ARTIFACT_DIR}")" "${ARTIFACT_DIR}"
|
||||
fi
|
||||
|
||||
rm -f fedora/jellyfin*.tar.gz
|
||||
rm -f centos/jellyfin*.tar.gz
|
||||
|
||||
if [[ ${IS_DOCKER} == YES ]]; then
|
||||
pushd fedora
|
||||
pushd centos
|
||||
|
||||
cp -a /tmp/spec.orig jellyfin.spec
|
||||
chown -Rc "$(stat -c %u:%g "${ARTIFACT_DIR}")" "${ARTIFACT_DIR}"
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
#= Debian 10+ amd64 .deb
|
||||
#= Debian 12+ amd64 .deb
|
||||
|
||||
set -o errexit
|
||||
set -o xtrace
|
||||
@ -8,12 +8,6 @@ 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
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
#= Debian 10+ arm64 .deb
|
||||
#= Debian 12+ arm64 .deb
|
||||
|
||||
set -o errexit
|
||||
set -o xtrace
|
||||
@ -8,12 +8,6 @@ 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
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
#= Debian 10+ arm64 .deb
|
||||
#= Debian 12+ arm64 .deb
|
||||
|
||||
set -o errexit
|
||||
set -o xtrace
|
||||
@ -8,12 +8,6 @@ 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
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
#= Fedora 29+ amd64 .rpm
|
||||
#= Fedora 39+ amd64 .rpm
|
||||
|
||||
set -o errexit
|
||||
set -o xtrace
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
#= Ubuntu 18.04+ amd64 .deb
|
||||
#= Ubuntu 22.04+ amd64 .deb
|
||||
|
||||
set -o errexit
|
||||
set -o xtrace
|
||||
@ -8,12 +8,6 @@ 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
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
#= Ubuntu 18.04+ arm64 .deb
|
||||
#= Ubuntu 22.04+ arm64 .deb
|
||||
|
||||
set -o errexit
|
||||
set -o xtrace
|
||||
@ -8,12 +8,6 @@ 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
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
#= Ubuntu 18.04+ arm64 .deb
|
||||
#= Ubuntu 22.04+ arm64 .deb
|
||||
|
||||
set -o errexit
|
||||
set -o xtrace
|
||||
@ -8,12 +8,6 @@ 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user