Skip to content

Commit 306a157

Browse files
committed
Update AppImage build workflow to handle zsync file placement
- Modified the Linux build step in `build-desktop-platforms.yml` to ensure the generated `.zsync` file is correctly named and positioned next to the AppImage. - Added a check to move the `.zsync` file if `appimagetool` outputs it to the working directory. - Updated logging to verify the existence and size of both the AppImage and its corresponding zsync file.
1 parent d40d0bc commit 306a157

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/build-desktop-platforms.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,14 @@ jobs:
257257
UPINFO="gh-releases-zsync|rainxchzed|Github-Store|latest|*x86_64.AppImage.zsync"
258258
ARCH=x86_64 APPIMAGE_EXTRACT_AND_RUN=1 ./appimagetool-x86_64.AppImage -u "$UPINFO" "$APPDIR" "$OUTPUT"
259259
260-
echo "Created AppImage:"
261-
ls -lh "$OUTPUT"
260+
# appimagetool may place .zsync in the working directory; move it next to the AppImage
261+
ZSYNC_NAME="$(basename "$OUTPUT").zsync"
262+
if [ -f "$ZSYNC_NAME" ] && [ ! -f "$OUTPUT.zsync" ]; then
263+
mv "$ZSYNC_NAME" "$OUTPUT.zsync"
264+
fi
265+
266+
echo "Created AppImage and zsync:"
267+
ls -lh "$OUTPUT" "$OUTPUT.zsync"
262268
shell: bash
263269

264270
- name: Upload Linux installers

0 commit comments

Comments
 (0)