Skip to content

Commit cbff525

Browse files
jitrcclaude
andcommitted
fix: add missing AppRun script to AppImage build
The AppImage had no AppRun entry point, causing "execv error: No such file or directory" on launch. Add a shell script that resolves the embedded binary path and execs it. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 867d08c commit cbff525

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,16 @@ jobs:
133133
134134
cp AppDir/usr/share/applications/mailsweep.desktop AppDir/mailsweep.desktop
135135
136+
# Create AppRun entry point
137+
cat > AppDir/AppRun << 'APPRUN'
138+
#!/bin/bash
139+
SELF=$(readlink -f "$0")
140+
HERE=${SELF%/*}
141+
exec "${HERE}/usr/bin/mailsweep" "$@"
142+
APPRUN
143+
sed -i 's/^[[:space:]]*//' AppDir/AppRun
144+
chmod +x AppDir/AppRun
145+
136146
# Generate a simple icon
137147
python3 -c "
138148
from PyQt6.QtCore import QSize

0 commit comments

Comments
 (0)