diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5a3fe4e..ffcbbb9 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -35,7 +35,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: name: "Upload binaries to current release" @@ -51,7 +51,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/README.md b/README.md index 05803f5..760eec1 100644 --- a/README.md +++ b/README.md @@ -57,10 +57,15 @@ chmod +x Ghostty-x86_64.AppImage Since AppImages are self-contained executables, there is no formal installation process beyond setting executable permissions. -**To update:** +**To update manually:** -1. Download the latest AppImage package from the [releases](https://github.com/psadi/ghostty-appimage/releases) section. -2. Follow the same steps as in the [Installation](#installation) section to make it executable and run it. + 1. Download the latest AppImage package from the [releases](https://github.com/psadi/ghostty-appimage/releases) section. + 2. Follow the same steps as in the [Installation](#installation) section to make it executable and run it. + +**Update automatically:** + + 1. Use [AppImageUpdate](https://github.com/AppImageCommunity/AppImageUpdate) which reads the update information in the AppImage. This is a low level tool. + 2. Use a higher level tool that uses AppImageUpdate, like [AM](https://github.com/ivan-hc/AM) or [appimaged](https://github.com/probonopd/go-appimage/blob/master/src/appimaged/README.md) daemon, these tools also automatically handle desktop integration. ## ❓ What's Next? diff --git a/build.sh b/build.sh index 141aad0..924e56d 100755 --- a/build.sh +++ b/build.sh @@ -2,10 +2,12 @@ set -e +export ARCH="$(uname -m)" GHOSTTY_VERSION="1.0.1" TMP_DIR="/tmp/ghostty-build" APP_DIR="${TMP_DIR}/ghostty.AppDir" PUB_KEY="RWQlAjJC23149WL2sEpT/l0QKy7hMIFhYdQOFy0Z7z7PbneUgvlsnYcV" +UPINFO="gh-releases-zsync|$(echo "$GITHUB_REPOSITORY" | tr '/' '|')|latest|*$ARCH.AppImage.zsync" rm -rf "${TMP_DIR}" @@ -95,4 +97,4 @@ EOF cd "${TMP_DIR}" # create app image -ARCH="$(uname -m)" appimagetool "${APP_DIR}" +appimagetool -u "${UPINFO}" "${APP_DIR}"