Skip to content

Commit 52fec1e

Browse files
authored
fix(ci): workaround to add Murmure icon for AppImage (#176)
1 parent a4ceaae commit 52fec1e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/build-linux.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,24 @@ jobs:
7373
- name: Build
7474
run: pnpm tauri build ${{ inputs.dry && '--no-bundle' || '--bundles appimage,deb' }}
7575

76+
- name: Fix AppImage .DirIcon absolute symlink
77+
if: ${{ inputs.dry == false }}
78+
shell: bash
79+
run: |
80+
APPIMAGE=$(find src-tauri/target/release/bundle/appimage -name "*.AppImage" | head -1)
81+
if [ -n "$APPIMAGE" ]; then
82+
chmod +x "$APPIMAGE"
83+
"$APPIMAGE" --appimage-extract
84+
cd squashfs-root
85+
rm -f .DirIcon
86+
ln -s murmure.png .DirIcon
87+
cd ..
88+
wget -q https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage
89+
chmod +x appimagetool-x86_64.AppImage
90+
ARCH=x86_64 ./appimagetool-x86_64.AppImage squashfs-root "$APPIMAGE"
91+
rm -rf squashfs-root appimagetool-x86_64.AppImage
92+
fi
93+
7694
- name: Restore Tauri signing key
7795
if: ${{ inputs.dry == false }}
7896
env:

0 commit comments

Comments
 (0)