Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions bin/bundle-appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ export OUTNAME="Ghostty-${GHOSTTY_VERSION}-${ARCH}.AppImage"
export DESKTOP="./ghostty-${GHOSTTY_VERSION}/zig-out/share/applications/com.mitchellh.ghostty.desktop"
export ICON="./ghostty-${GHOSTTY_VERSION}/zig-out/share/icons/hicolor/256x256/apps/com.mitchellh.ghostty.png"

# Fix Exec and TryExec paths: the build produces absolute paths from the build
# environment, which breaks desktop integration tools like appimaged that extract
# the .desktop file and use it as-is. Using just the binary name lets the AppImage
# runtime resolve it correctly.
sed -i 's|^TryExec=.*|TryExec=ghostty|' "$DESKTOP"
sed -i 's|^Exec=.*ghostty\(.*\)|Exec=ghostty\1|' "$DESKTOP"

./quick-sharun ./ghostty-${GHOSTTY_VERSION}/zig-out/bin/ghostty
cp -rf ./ghostty-${GHOSTTY_VERSION}/zig-out/share/* ./AppDir/share/
./quick-sharun --make-appimage
Expand Down
Loading