@@ -36,28 +36,26 @@ cd "${TMP_DIR}/ghostty-${GHOSTTY_VERSION}"
3636sed -i ' s/linkSystemLibrary2("bzip2", dynamic_link_opts)/linkSystemLibrary2("bz2", dynamic_link_opts)/' src/build/SharedDeps.zig
3737
3838# Fetch Zig Cache
39- ZIG_GLOBAL_CACHE_DIR=/tmp/offline-cache ./nix/build-support/fetch-zig-cache.sh
39+ # TODO: Revert cache once upstream fixes fetch
40+ # ZIG_GLOBAL_CACHE_DIR=/tmp/offline-cache ./nix/build-support/check-zig-cache.sh
4041
4142# Build Ghostty with zig
4243zig build \
4344 --summary all \
4445 --prefix " ${APP_DIR} /usr" \
45- --system /tmp/offline-cache/p \
4646 -Doptimize=ReleaseFast \
4747 -Dcpu=baseline \
4848 -Dpie=true \
4949 -Demit-docs \
5050 -Dversion-string=" ${GHOSTTY_VERSION} "
51+ # --system /tmp/offline-cache/p \
5152
5253cd " ${APP_DIR} "
5354
5455cp " ${APPDATA_FILE} " " usr/share/metainfo/com.mitchellh.ghostty.appdata.xml"
55-
56- # Fix Gnome dock issues -- StartupWMClass attribute needs to be present.
5756cp " ${DESKTOP_FILE} " " usr/share/applications/com.mitchellh.ghostty.desktop"
58- # WezTerm has this, it might be useful.
59- ln -s " com.mitchellh.ghostty.desktop" " usr/share/applications/ghostty.desktop"
6057
58+ ln -s " com.mitchellh.ghostty.desktop" " usr/share/applications/ghostty.desktop"
6159ln -s " usr/share/applications/com.mitchellh.ghostty.desktop" .
6260ln -s " usr/share/icons/hicolor/256x256/apps/com.mitchellh.ghostty.png" .
6361
@@ -68,8 +66,8 @@ xvfb-run -a -- ./lib4bin -p -v -e -s -k ./usr/bin/ghostty /usr/lib/libEGL*
6866rm -rf ./usr/bin
6967
7068# Prepare AppImage -- Configure launcher script, metainfo and desktop file with icon.
71- echo ' unset ARGV0' > ./.env
72- echo ' GHOSTTY_RESOURCES_DIR=${SHARUN_DIR}/usr/share/ghostty' >> ./.env
69+ echo ' unset ARGV0' > ./.env
70+ echo ' GHOSTTY_RESOURCES_DIR=${SHARUN_DIR}/usr/share/ghostty' >> ./.env
7371ln -s ./bin/ghostty ./AppRun
7472./sharun -g
7573
0 commit comments