浏览代码

Fix action building (#10899)

* Fix action building

* Added required package
Gauvino 1 年之前
父节点
当前提交
30ab5d5e81

+ 3 - 3
deployment/Dockerfile.centos.amd64

@@ -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
 

+ 6 - 6
deployment/build.centos.amd64

@@ -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 - 7
deployment/build.debian.amd64

@@ -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 - 7
deployment/build.debian.arm64

@@ -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 - 7
deployment/build.debian.armhf

@@ -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 - 1
deployment/build.fedora.amd64

@@ -1,6 +1,6 @@
 #!/bin/bash
 
-#= Fedora 29+ amd64 .rpm
+#= Fedora 39+ amd64 .rpm
 
 set -o errexit
 set -o xtrace

+ 1 - 7
deployment/build.ubuntu.amd64

@@ -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 - 7
deployment/build.ubuntu.arm64

@@ -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 - 7
deployment/build.ubuntu.armhf

@@ -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