Skip to content

Commit c5ae935

Browse files
author
psadi
committed
fix: change upinfo name which conflicts between builds
1 parent 5cd6539 commit c5ae935

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

build.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ GHOSTTY_VERSION="$(cat VERSION)"
99
TMP_DIR="/tmp/ghostty-build"
1010
APP_DIR="${TMP_DIR}/ghostty.AppDir"
1111
PUB_KEY="RWQlAjJC23149WL2sEpT/l0QKy7hMIFhYdQOFy0Z7z7PbneUgvlsnYcV"
12-
UPINFO="gh-releases-zsync|$(echo "${GITHUB_REPOSITORY:-no-user/no-repo}" | tr '/' '|')|latest|*$ARCH.AppImage.zsync"
12+
UPINFO="gh-releases-zsync|$(echo "${GITHUB_REPOSITORY:-no-user/no-repo}" | tr '/' '|')|latest|Ghostty-*$ARCH.AppImage.zsync"
1313
APPDATA_FILE="${PWD}/assets/ghostty.appdata.xml"
1414
DESKTOP_FILE="${PWD}/assets/ghostty.desktop"
1515
LIBS2BUNDLE="./bin/ghostty /usr/lib/libEGL*"
@@ -29,7 +29,7 @@ mkdir -p -- "${TMP_DIR}" "${APP_DIR}/share/metainfo" "${APP_DIR}/shared/lib"
2929

3030
cd "${TMP_DIR}"
3131

32-
if [ $GHOSTTY_VERSION == "tip" ]; then
32+
if [ $GHOSTTY_VERSION = "tip" ]; then
3333
wget "https://github.com/ghostty-org/ghostty/releases/download/tip/ghostty-source.tar.gz" -O ghostty-${GHOSTTY_VERSION}.tar.gz
3434
wget "https://github.com/ghostty-org/ghostty/releases/download/tip/ghostty-source.tar.gz.minisig" -O ghostty-${GHOSTTY_VERSION}.tar.gz.minisig
3535
GHOSTTY_VERSION="$(tar -tf ghostty-${GHOSTTY_VERSION}.tar.gz --wildcards "*zig.zon.txt" | awk -F'[-/]' '{print $2"-"$3}')"
@@ -40,7 +40,7 @@ else
4040
wget "https://release.files.ghostty.org/${GHOSTTY_VERSION}/ghostty-${GHOSTTY_VERSION}.tar.gz.minisig"
4141
fi
4242

43-
if [ $GLFW == true ]; then
43+
if [ $GLFW = true ]; then
4444
BUILD_ARGS="${BUILD_ARGS} -Dapp-runtime=glfw"
4545
else
4646
LIBS2BUNDLE="${LIBS2BUNDLE} /usr/lib/gdk-pixbuf-*/*/*/*"
@@ -83,7 +83,7 @@ xvfb-run -a -- sharun l -p -v -e -s -k ${LIBS2BUNDLE}
8383

8484
# preload libpixbufloader /w ld-preload-open as svg icons breaks
8585
# either on ghostty tab bar or gnome-text-editor while config edit or both :(
86-
if [ $GLFW == false ]; then
86+
if [ $GLFW = false ]; then
8787
mv ./shared/lib/gdk-pixbuf-2.0 ./
8888
cp -rv /opt/path-mapping.so ./shared/lib/
8989
cp -rv gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader_svg.so ./shared/lib/
@@ -106,8 +106,9 @@ fi
106106

107107
GHOSTTY_APPIMAGE="Ghostty-${VERSION}-${ARCH}.AppImage"
108108

109-
if [ $GLFW == true ]; then
110-
GHOSTTY_APPIMAGE="Ghostty-Glfw-${VERSION}-${ARCH}.AppImage"
109+
if [ $GLFW = true ]; then
110+
UPINFO="gh-releases-zsync|$(echo "${GITHUB_REPOSITORY:-no-user/no-repo}" | tr '/' '|')|latest|Ghossty_*$ARCH.AppImage.zsync"
111+
GHOSTTY_APPIMAGE="Ghostty_Glfw-${VERSION}-${ARCH}.AppImage"
111112
fi
112113

113114
cd "${TMP_DIR}"

0 commit comments

Comments
 (0)