From 83e23f2259de33aadce67ccfa8ec67b4b1ab7f81 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 3 Sep 2025 21:54:38 +0300 Subject: [PATCH] Remove postinst script for desktop icon in Linux build The postinst script responsible for placing the desktop icon during DEB package installation has been removed from the build workflow. This simplifies the packaging process and eliminates custom post-installation steps. --- .github/workflows/build-linux.yml | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index 251cb3c..3408398 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -125,7 +125,6 @@ jobs: ("assets", "assets"), ("ytsage.desktop", "share/applications/ytsage.desktop"), ("assets/branding/icons/icon.png", "share/pixmaps/ytsage.png"), - ("debian/postinst", "DEBIAN/postinst"), # Added for desktop icon ], ) @@ -175,32 +174,6 @@ jobs: StartupWMClass=YTSage DESKTOP - - name: Create postinst script for desktop icon - shell: bash - run: | - mkdir -p debian - cat > debian/postinst <<'POSTINST' - #!/bin/sh - set -e - # Copy .desktop file to user's desktop for icon - if [ -n "$SUDO_USER" ]; then - DESKTOP_DIR="/home/$SUDO_USER/Desktop" - if [ -d "$DESKTOP_DIR" ]; then - cp /usr/share/applications/ytsage.desktop "$DESKTOP_DIR/" - chmod +x "$DESKTOP_DIR/ytsage.desktop" - chown $SUDO_USER:$SUDO_USER "$DESKTOP_DIR/ytsage.desktop" - echo "Placed ytsage.desktop on $SUDO_USER's desktop" - else - echo "Warning: Desktop directory $DESKTOP_DIR not found, skipping desktop icon placement" - fi - else - echo "Warning: SUDO_USER not set, skipping desktop icon placement" - fi - # Update icon cache - gtk-update-icon-cache -f /usr/share/icons/hicolor/ 2>/dev/null || true - POSTINST - chmod +x debian/postinst - - name: Build AppImage, RPM and DEB shell: bash run: | @@ -284,4 +257,4 @@ jobs: files: | artifacts/* env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}