diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4bc62d9..c60200f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -36,7 +36,7 @@ jobs: with: name: ghostty-appimage retention-days: 7 - path: /tmp/ghostty-build/Ghostty-x86_64.AppImage* + path: /tmp/ghostty-build/Ghostty-*-x86_64.AppImage* release_appimage: permissions: @@ -56,7 +56,7 @@ jobs: uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: ./Ghostty-x86_64.AppImage* + file: ./Ghostty-*-x86_64.AppImage* tag: ${{ github.ref }} overwrite: true file_glob: true diff --git a/build.sh b/build.sh index bf4c02b..45a6881 100755 --- a/build.sh +++ b/build.sh @@ -80,6 +80,12 @@ EOF chmod +x AppRun +export VERSION="$(./AppRun --version 2>/dev/null | awk 'FNR==1 {print $2}')" +if [ -z "$VERSION" ]; then + echo "ERROR: Could not get version from ghostty binary" + exit 1 +fi + cp "${APPDATA_FILE}" "usr/share/metainfo/com.mitchellh.ghostty.appdata.xml" # Fix Gnome dock issues -- StartupWMClass attribute needs to be present.