Update Linux build workflow for desktop integration

Adds ytsage.desktop and icon to packaging, removes RPM install script, and updates workflow steps to improve desktop integration for Linux builds.
This commit is contained in:
Your Name
2025-09-02 18:47:43 +03:00
parent 9ddac31b4b
commit 5d48e29d68
+4 -11
View File
@@ -123,6 +123,8 @@ jobs:
include_files=[ include_files=[
("src", "src"), ("src", "src"),
("assets", "assets"), ("assets", "assets"),
("ytsage.desktop", "share/applications/ytsage.desktop"),
("assets/branding/icons/icon.png", "share/pixmaps/ytsage.png"),
], ],
) )
@@ -145,11 +147,10 @@ jobs:
# If ends with .AppImage, use verbatim file name # If ends with .AppImage, use verbatim file name
"target_name": f"YTSage-v{version}.AppImage", "target_name": f"YTSage-v{version}.AppImage",
}, },
# RPM packaging metadata + desktop integration # RPM packaging metadata
"bdist_rpm": { "bdist_rpm": {
"release": "1", "release": "1",
"group": "Applications/Multimedia", "group": "Applications/Multimedia",
"install_script": "rpm_install.sh",
}, },
# DEB packaging wraps alien to convert RPM # DEB packaging wraps alien to convert RPM
"bdist_deb": {}, "bdist_deb": {},
@@ -158,7 +159,7 @@ jobs:
) )
PY PY
- name: Create desktop entry and RPM install script - name: Create desktop entry
shell: bash shell: bash
run: | run: |
cat > ytsage.desktop <<'DESKTOP' cat > ytsage.desktop <<'DESKTOP'
@@ -173,14 +174,6 @@ jobs:
StartupWMClass=YTSage StartupWMClass=YTSage
DESKTOP DESKTOP
cat > rpm_install.sh <<'SH'
#!/bin/sh
set -e
install -Dm644 ytsage.desktop "$RPM_BUILD_ROOT/usr/share/applications/ytsage.desktop"
install -Dm644 assets/branding/icons/icon.png "$RPM_BUILD_ROOT/usr/share/pixmaps/ytsage.png"
SH
chmod +x rpm_install.sh
- name: Build AppImage, RPM and DEB - name: Build AppImage, RPM and DEB
shell: bash shell: bash
run: | run: |