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.
This commit is contained in:
@@ -214,7 +214,8 @@ jobs:
|
|||||||
# Build RPM manually with proper spec file
|
# Build RPM manually with proper spec file
|
||||||
version="${{ steps.get_version.outputs.VERSION }}"
|
version="${{ steps.get_version.outputs.VERSION }}"
|
||||||
arch_uname="${ARCH}"
|
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
|
# Create custom RPM spec file that doesn't auto-detect dependencies
|
||||||
mkdir -p build/rpm/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
|
mkdir -p build/rpm/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
|
||||||
@@ -259,8 +260,8 @@ jobs:
|
|||||||
chmod 0755 %{buildroot}/usr/bin/ytsage
|
chmod 0755 %{buildroot}/usr/bin/ytsage
|
||||||
|
|
||||||
# Install desktop file and icon
|
# Install desktop file and icon
|
||||||
install -m 0644 ${build_dir_abs}/../../../ytsage.desktop %{buildroot}/usr/share/applications/ytsage.desktop
|
install -m 0644 ${workspace_root}/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}/assets/branding/icons/icon.png %{buildroot}/usr/share/pixmaps/ytsage.png
|
||||||
|
|
||||||
%files
|
%files
|
||||||
/opt/ytsage
|
/opt/ytsage
|
||||||
|
|||||||
Reference in New Issue
Block a user