Skip to content

Commit ef94ea8

Browse files
authored
set $VERSION variable (pkgforge-dev#10)
* set `$VERSION` variable * release versioned appimages
1 parent da758c7 commit ef94ea8

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
with:
3737
name: ghostty-appimage
3838
retention-days: 7
39-
path: /tmp/ghostty-build/Ghostty-x86_64.AppImage*
39+
path: /tmp/ghostty-build/Ghostty-*-x86_64.AppImage*
4040

4141
release_appimage:
4242
permissions:
@@ -56,7 +56,7 @@ jobs:
5656
uses: svenstaro/upload-release-action@v2
5757
with:
5858
repo_token: ${{ secrets.GITHUB_TOKEN }}
59-
file: ./Ghostty-x86_64.AppImage*
59+
file: ./Ghostty-*-x86_64.AppImage*
6060
tag: ${{ github.ref }}
6161
overwrite: true
6262
file_glob: true

build.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ EOF
8080

8181
chmod +x AppRun
8282

83+
export VERSION="$(./AppRun --version 2>/dev/null | awk 'FNR==1 {print $2}')"
84+
if [ -z "$VERSION" ]; then
85+
echo "ERROR: Could not get version from ghostty binary"
86+
exit 1
87+
fi
88+
8389
cp "${APPDATA_FILE}" "usr/share/metainfo/com.mitchellh.ghostty.appdata.xml"
8490

8591
# Fix Gnome dock issues -- StartupWMClass attribute needs to be present.

0 commit comments

Comments
 (0)