Skip to content

Commit 7da866d

Browse files
author
psadi
committed
test
1 parent 8bedfab commit 7da866d

File tree

2 files changed

+30
-7
lines changed

2 files changed

+30
-7
lines changed

.github/workflows/ci.yaml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build Ghostty AppImage
1+
name: Build
22
on:
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:
@@ -82,5 +98,5 @@ jobs:
8298
prerelease: true
8399
draft: false
84100
files: |
85-
/tmp/ghostty-build/Ghostty-*-${{ matrix.arch }}.AppImage*
101+
*.AppImage*
86102
repo_token: ${{ secrets.GITHUB_TOKEN }}

build.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
set -e
44

5+
preload_lib() {
6+
[ -f "$1" ] && [ -d "$2" ] && mv "$1" "$2"
7+
}
8+
59
export ARCH="$(uname -m)"
610
export APPIMAGE_EXTRACT_AND_RUN=1
711

@@ -26,7 +30,7 @@ BUILD_ARGS="
2630

2731
rm -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

3135
cd "${TMP_DIR}"
3236

@@ -71,12 +75,15 @@ ln -s "share/icons/hicolor/256x256/apps/com.mitchellh.ghostty.png" .
7175
wget "$LIB4BN" -O ./lib4bin
7276
chmod +x ./lib4bin
7377
xvfb-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.
7780
echo 'GHOSTTY_RESOURCES_DIR=${SHARUN_DIR}/share/ghostty' >>./.env
7881
echo '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+
8087
ln -s ./bin/ghostty ./AppRun
8188
./sharun -g
8289

0 commit comments

Comments
 (0)