File tree Expand file tree Collapse file tree 2 files changed +30
-7
lines changed
Expand file tree Collapse file tree 2 files changed +30
-7
lines changed Original file line number Diff line number Diff line change 1- name : Build Ghostty AppImage
1+ name : Build
22on :
33 schedule :
44 - cron : " 0 0 * * *"
@@ -63,17 +63,33 @@ jobs:
6363 retention-days : 7
6464 path : /tmp/ghostty-build/Ghostty-*-${{ matrix.arch }}.AppImage*
6565
66- - name : Ghostty stable release
66+ release_appimage :
67+ name : Release Ghostty AppImage
68+ permissions :
69+ actions : read
70+ security-events : write
71+ contents : write
72+ runs-on : ubuntu-latest
73+ steps :
74+ - uses : actions/download-artifact@v4
75+ with :
76+ name : ghostty-appimage-aarch64
77+
78+ - uses : actions/download-artifact@v4
79+ with :
80+ name : ghostty-appimage-x86_64
81+
82+ - name : Ghostty stable
6783 if : ${{ github.event_name == 'release' }}
6884 uses : svenstaro/upload-release-action@v2
6985 with :
7086 repo_token : ${{ secrets.GITHUB_TOKEN }}
71- file : /tmp/ghostty-build/Ghostty-*-${{ matrix.arch }}. AppImage*
87+ file : " *. AppImage*"
7288 tag : ${{ github.ref }}
7389 overwrite : true
7490 file_glob : true
7591
76- - name : Ghostty Tip ("Nightly") release
92+ - name : Ghostty Tip ("Nightly")
7793 uses :
marvinpinto/[email protected] 7894 if : ${{ github.event_name == 'schedule' }}
7995 with :
8298 prerelease : true
8399 draft : false
84100 files : |
85- /tmp/ghostty-build/Ghostty-*-${{ matrix.arch }} .AppImage*
101+ * .AppImage*
86102 repo_token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 22
33set -e
44
5+ preload_lib () {
6+ [ -f " $1 " ] && [ -d " $2 " ] && mv " $1 " " $2 "
7+ }
8+
59export ARCH=" $( uname -m) "
610export APPIMAGE_EXTRACT_AND_RUN=1
711
@@ -26,7 +30,7 @@ BUILD_ARGS="
2630
2731rm -rf " ${TMP_DIR} "
2832
29- mkdir -p -- " ${TMP_DIR} " " ${APP_DIR} /share/metainfo"
33+ mkdir -p -- " ${TMP_DIR} " " ${APP_DIR} /share/metainfo" " ${APP_DIR} /shared/preload "
3034
3135cd " ${TMP_DIR} "
3236
@@ -71,12 +75,15 @@ ln -s "share/icons/hicolor/256x256/apps/com.mitchellh.ghostty.png" .
7175wget " $LIB4BN " -O ./lib4bin
7276chmod +x ./lib4bin
7377xvfb-run -a -- ./lib4bin -p -v -e -s -k ./bin/ghostty /usr/lib/libEGL*
74- # rm -rf ./usr/bin
7578
7679# Prepare AppImage -- Configure launcher script, metainfo and desktop file with icon.
7780echo ' GHOSTTY_RESOURCES_DIR=${SHARUN_DIR}/share/ghostty' >> ./.env
7881echo ' unset ARGV0' >> ./.env
7982
83+ preload_lib " shared/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader_svg.so" " shared/preload"
84+
85+ [ -d ' shared/lib/gdk-pixbuf-2.0' ] && rm -rf shared/lib/gdk-pixbuf-2.0
86+
8087ln -s ./bin/ghostty ./AppRun
8188./sharun -g
8289
You can’t perform that action at this time.
0 commit comments