V3-alpha-bugfix/linux-appimage-taskfile-broken#4641
Conversation
WalkthroughUpdated the generate:dotdesktop task in v3/internal/commands/build_assets/linux/Taskfile.yml, changing the ICON variable from '{{.APP_NAME}}' to 'appicon'. No other task variables or flow were modified. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Suggested labels
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
|
related #4477 |
|
Can you modify line 50 and 55 {{.APP_NAME}}.png and check if that works? |
|
Thanks for opening this 🙏 I think using the dynamic naming option in #4644 is preferable so closing this in favour of that. Thanks again 🙏 |



Description
This PR fixes an AppImage build failure caused by an icon filename mismatch between the desktop file specification and the actual icon file in the AppDir.
Root Cause: The desktop file (
app.desktop) specifiesIcon=app, but the AppDir containsappicon.png -> .DirIcon(symlink). The linuxdeploy appimage plugin validates theIcon=field and fails when it cannot findapp.png,app.svg, orapp.xpmin the AppDir root.The Fix: Aligns the icon variable in the Taskfile's
generate:dotdesktoptask to match the icon filename created by thecreate:appimagetask, ensuring both useappiconas the base name.Configuration Chain:
build/linux/Taskfile.ymlline 113):ICON: '{{.APP_NAME}}'→ Desktop file getsIcon=appbuild/linux/Taskfile.ymlline 55):ICON: '../../appicon.png'→ Path used for symlinkappimage.goline 101):filepath.Base("../../appicon.png")="appicon.png"→ Createsappicon.png -> .DirIconThis mismatch causes linuxdeploy to fail when searching for the icon referenced in the desktop file.
Fixes #4642
Type of change
How Has This Been Tested?
Test Environment: Linux (Ubuntu/Fedora-based distribution)
Pre-Fix Testing:
appicon.pngsymlink exists butapp.pngis missingIcon=appwhile actual file isappicon.pngPost-Fix Testing:
ICON: 'appicon'in both tasks)wails3 package --platform linux/amd64 --target appimageAdditional Validation:
Verified DEB, RPM, and AUR packaging still work (not affected by this change)
Confirmed binary build works
Tested with custom app names to ensure fix works generically
Windows
macOS
Linux
Linux Distro: Fedora/Ubuntu-based (development environment uses Fedora based on user profile)
Test Configuration
Note: Full
wails doctoroutput can be provided upon requestChecklist:
website/src/pages/changelog.mdxwith details of this PR