From 9350982f8c574398b51012225a18bb0e3ed79ead Mon Sep 17 00:00:00 2001 From: oop7 <110548351+oop7@users.noreply.github.com> Date: Tue, 9 Dec 2025 18:28:15 +0200 Subject: [PATCH] Fix RPM build paths in Linux workflow Updates the build-linux.yml workflow to use absolute paths for build directory and asset installation during RPM packaging. This ensures files are correctly located and copied, improving reliability of the build process. --- .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 679b26d..03f29af 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -214,6 +214,7 @@ jobs: # Build RPM manually with proper spec file version="${{ steps.get_version.outputs.VERSION }}" arch_uname="${ARCH}" + build_dir_abs="$(pwd)/${build_dir}" # Create custom RPM spec file that doesn't auto-detect dependencies mkdir -p build/rpm/{BUILD,RPMS,SOURCES,SPECS,SRPMS} @@ -245,7 +246,7 @@ jobs: mkdir -p %{buildroot}/usr/share/pixmaps # Copy application files - cp -a ${build_dir}/* %{buildroot}/opt/ytsage/ + cp -a ${build_dir_abs}/* %{buildroot}/opt/ytsage/ # Create wrapper script cat > %{buildroot}/usr/bin/ytsage <<'WRAPPER' @@ -258,8 +259,8 @@ jobs: chmod 0755 %{buildroot}/usr/bin/ytsage # Install desktop file and icon - install -m 0644 ytsage.desktop %{buildroot}/usr/share/applications/ytsage.desktop - install -m 0644 assets/branding/icons/icon.png %{buildroot}/usr/share/pixmaps/ytsage.png + 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 %files /opt/ytsage