File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -44,14 +44,24 @@ zig build \
4444
4545cd " ${APP_DIR} "
4646
47+ # bundle all libs
48+ mkdir -p ./usr/lib
49+ ldd ./usr/bin/ghostty | awk -F" [> ]" ' {print $4}' | xargs -I {} cp -vn {} ./usr/lib
50+ if ! mv ./usr/lib/ld-linux-x86-64.so.2 ./; then
51+ cp -v /lib64/ld-linux-x86-64.so.2 ./
52+ fi
53+
4754# prep appimage
48- printf ' #!/bin/sh\n\nexec "$(dirname "$(readlink -f "$0")")/usr/bin/ghostty"\n' | tee AppRun > /dev/null
55+ echo ' #!/usr/bin/env sh
56+ HERE="$(dirname "$(readlink -f "$0")")"
57+ export TERM=xterm-256color
58+ exec "$HERE"/ld-linux-x86-64.so.2 --library-path "$HERE"/usr/lib "$HERE"/usr/bin/ghostty "$@"' > ./AppRun
4959chmod +x AppRun
5060ln -s usr/share/applications/com.mitchellh.ghostty.desktop
5161ln -s usr/share/icons/hicolor/256x256/apps/com.mitchellh.ghostty.png
5262
5363cd " ${TMP_DIR} "
5464# create app image
55- ARCH=x8_64 appimagetool " ${APP_DIR} "
65+ ARCH=" $( uname -m ) " appimagetool " ${APP_DIR} "
5666
5767appimagelint " ${TMP_DIR} /Ghostty-x86_64.AppImage" || true
You can’t perform that action at this time.
0 commit comments