Skip to content

Commit 9beedca

Browse files
author
PS Adithya
authored
Merge pull request pkgforge-dev#4 from Samueru-sama/main
Generate `.zsync` file for delta updates
2 parents c0aceb5 + 5dee7ef commit 9beedca

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

.github/workflows/ci.yaml

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

4040
release_appimage:
4141
name: "Upload binaries to current release"
@@ -51,7 +51,7 @@ jobs:
5151
uses: svenstaro/upload-release-action@v2
5252
with:
5353
repo_token: ${{ secrets.GITHUB_TOKEN }}
54-
file: ./Ghostty-x86_64.AppImage
54+
file: ./Ghostty-x86_64.AppImage*
5555
tag: ${{ github.ref }}
5656
overwrite: true
5757
file_glob: true

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,15 @@ chmod +x Ghostty-x86_64.AppImage
5757

5858
Since AppImages are self-contained executables, there is no formal installation process beyond setting executable permissions.
5959

60-
**To update:**
60+
**To update manually:**
6161

62-
1. Download the latest AppImage package from the [releases](https://github.com/psadi/ghostty-appimage/releases) section.
63-
2. Follow the same steps as in the [Installation](#installation) section to make it executable and run it.
62+
1. Download the latest AppImage package from the [releases](https://github.com/psadi/ghostty-appimage/releases) section.
63+
2. Follow the same steps as in the [Installation](#installation) section to make it executable and run it.
64+
65+
**Update automatically:**
66+
67+
1. Use [AppImageUpdate](https://github.com/AppImageCommunity/AppImageUpdate) which reads the update information in the AppImage. This is a low level tool.
68+
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.
6469

6570
## ❓ What's Next?
6671

build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
set -e
44

5+
export ARCH="$(uname -m)"
56
GHOSTTY_VERSION="1.0.1"
67
TMP_DIR="/tmp/ghostty-build"
78
APP_DIR="${TMP_DIR}/ghostty.AppDir"
89
PUB_KEY="RWQlAjJC23149WL2sEpT/l0QKy7hMIFhYdQOFy0Z7z7PbneUgvlsnYcV"
10+
UPINFO="gh-releases-zsync|$(echo "$GITHUB_REPOSITORY" | tr '/' '|')|latest|*$ARCH.AppImage.zsync"
911

1012
rm -rf "${TMP_DIR}"
1113

@@ -95,4 +97,4 @@ EOF
9597
cd "${TMP_DIR}"
9698

9799
# create app image
98-
ARCH="$(uname -m)" appimagetool "${APP_DIR}"
100+
appimagetool -u "${UPINFO}" "${APP_DIR}"

0 commit comments

Comments
 (0)