From e034e9bbcfeb2130736b9c1d6fed72f98c1fed72 Mon Sep 17 00:00:00 2001 From: oop7 <110548351+oop7@users.noreply.github.com> Date: Tue, 9 Dec 2025 18:36:30 +0200 Subject: [PATCH] Fix RPM build paths in Linux workflow Updated the build-linux.yml workflow to use absolute paths for the desktop file and icon during RPM packaging, ensuring correct file installation regardless of the build directory structure. --- .github/workflows/build-linux.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index 03f29af..e089702 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -214,7 +214,8 @@ jobs: # Build RPM manually with proper spec file version="${{ steps.get_version.outputs.VERSION }}" arch_uname="${ARCH}" - build_dir_abs="$(pwd)/${build_dir}" + workspace_root="$(pwd)" + build_dir_abs="${workspace_root}/${build_dir}" # Create custom RPM spec file that doesn't auto-detect dependencies mkdir -p build/rpm/{BUILD,RPMS,SOURCES,SPECS,SRPMS} @@ -259,8 +260,8 @@ jobs: chmod 0755 %{buildroot}/usr/bin/ytsage # Install desktop file and icon - install -m 0644 ${build_dir_abs}/../../../ytsage.desktop %{buildroot}/usr/share/applications/ytsage.desktop - install -m 0644 ${build_dir_abs}/../../../assets/branding/icons/icon.png %{buildroot}/usr/share/pixmaps/ytsage.png + install -m 0644 ${workspace_root}/ytsage.desktop %{buildroot}/usr/share/applications/ytsage.desktop + install -m 0644 ${workspace_root}/assets/branding/icons/icon.png %{buildroot}/usr/share/pixmaps/ytsage.png %files /opt/ytsage