fix AUR install .desktop file hash mismatch due to newline character at the end

This commit is contained in:
lone-cloud 2025-09-24 10:02:57 -07:00
parent 1c3b90efff
commit 827a8f82c8
2 changed files with 14 additions and 6 deletions

View file

@ -124,7 +124,7 @@ jobs:
# Download desktop file with retry # Download desktop file with retry
for attempt in $(seq 1 $max_attempts); do for attempt in $(seq 1 $max_attempts); do
echo "Attempt $attempt: Downloading desktop file..." echo "Attempt $attempt: Downloading desktop file..."
if curl -L -o "gerbil.desktop" "https://raw.githubusercontent.com/lone-cloud/gerbil/${{ inputs.tag }}/assets/gerbil.desktop"; then if curl -L -o "gerbil.desktop" "https://github.com/lone-cloud/gerbil/releases/download/${{ inputs.tag }}/gerbil.desktop"; then
echo "✅ Desktop file downloaded successfully" echo "✅ Desktop file downloaded successfully"
break break
else else
@ -140,7 +140,7 @@ jobs:
# Download license file with retry # Download license file with retry
for attempt in $(seq 1 $max_attempts); do for attempt in $(seq 1 $max_attempts); do
echo "Attempt $attempt: Downloading license file..." echo "Attempt $attempt: Downloading license file..."
if curl -L -o "LICENSE" "https://raw.githubusercontent.com/lone-cloud/gerbil/${{ inputs.tag }}/LICENSE"; then if curl -L -o "LICENSE" "https://github.com/lone-cloud/gerbil/releases/download/${{ inputs.tag }}/LICENSE"; then
echo "✅ License file downloaded successfully" echo "✅ License file downloaded successfully"
break break
else else
@ -190,8 +190,8 @@ jobs:
provides=('gerbil') provides=('gerbil')
conflicts=('gerbil-git') conflicts=('gerbil-git')
source=("gerbil-${pkgver}.AppImage::${{ steps.release_info.outputs.appimage_url }}" source=("gerbil-${pkgver}.AppImage::${{ steps.release_info.outputs.appimage_url }}"
"gerbil.desktop::https://raw.githubusercontent.com/lone-cloud/gerbil/${{ steps.release_info.outputs.tag }}/assets/gerbil.desktop" "gerbil.desktop::https://github.com/lone-cloud/gerbil/releases/download/${{ steps.release_info.outputs.tag }}/gerbil.desktop"
"LICENSE::https://raw.githubusercontent.com/lone-cloud/gerbil/${{ steps.release_info.outputs.tag }}/LICENSE") "LICENSE::https://github.com/lone-cloud/gerbil/releases/download/${{ steps.release_info.outputs.tag }}/LICENSE")
sha256sums=('${{ steps.sha_calc.outputs.sha256_appimage }}' sha256sums=('${{ steps.sha_calc.outputs.sha256_appimage }}'
'${{ steps.sha_calc.outputs.sha256_desktop }}' '${{ steps.sha_calc.outputs.sha256_desktop }}'
'${{ steps.sha_calc.outputs.sha256_license }}') '${{ steps.sha_calc.outputs.sha256_license }}')
@ -320,8 +320,8 @@ jobs:
provides = gerbil provides = gerbil
conflicts = gerbil-git conflicts = gerbil-git
source = gerbil-${{ steps.release_info.outputs.version }}.AppImage::${{ steps.release_info.outputs.appimage_url }} source = gerbil-${{ steps.release_info.outputs.version }}.AppImage::${{ steps.release_info.outputs.appimage_url }}
source = gerbil.desktop::https://raw.githubusercontent.com/lone-cloud/gerbil/${{ steps.release_info.outputs.tag }}/assets/gerbil.desktop source = gerbil.desktop::https://github.com/lone-cloud/gerbil/releases/download/${{ steps.release_info.outputs.tag }}/gerbil.desktop
source = LICENSE::https://raw.githubusercontent.com/lone-cloud/gerbil/${{ steps.release_info.outputs.tag }}/LICENSE source = LICENSE::https://github.com/lone-cloud/gerbil/releases/download/${{ steps.release_info.outputs.tag }}/LICENSE
sha256sums = ${{ steps.sha_calc.outputs.sha256_appimage }} sha256sums = ${{ steps.sha_calc.outputs.sha256_appimage }}
sha256sums = ${{ steps.sha_calc.outputs.sha256_desktop }} sha256sums = ${{ steps.sha_calc.outputs.sha256_desktop }}
sha256sums = ${{ steps.sha_calc.outputs.sha256_license }} sha256sums = ${{ steps.sha_calc.outputs.sha256_license }}

View file

@ -182,6 +182,14 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload additional assets for AUR
run: |
# Upload desktop file and LICENSE as release assets for AUR consistency
gh release upload ${{ steps.tag.outputs.tag }} "assets/gerbil.desktop" --clobber
gh release upload ${{ steps.tag.outputs.tag }} "LICENSE" --clobber
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
aur-release: aur-release:
needs: release needs: release
if: needs.release.outputs.is_prerelease != 'true' if: needs.release.outputs.is_prerelease != 'true'