[Feature Request] Provide .zsync files and embed update information for AppImage releases
Dear @gz83 Dear @Alex313031
Overview
Currently, Thorium provides Linux AppImage releases. However, each update requires downloading the entire ~200MB+ binary from scratch. Providing differential (delta) update support via .zsync would significantly reduce download bandwidth for end users and offload release traffic from GitHub.
Why this is useful
- Bandwidth Efficiency: Delta updates typically require downloading only 10%–20% of the entire AppImage for minor point updates.
- Native Ecosystem Support: Tools like
AppImageUpdate,appimageupdatetool, and various AppImage managers can automatically check for updates and update the local file in-place using zsync without redownloading identical blocks.
Implementation Suggestion
If using appimagetool to bundle the AppImage, update information can be embedded directly into the binary during packaging using the -u flag. This flag automatically generates the matching .zsync file alongside the AppImage artifact:
appimagetool -u "gh-releases-zsync|Alex313031|Thorium|latest|Thorium*x86_64.AppImage.zsync" /path/to/AppDir Thorium-$VERSION_<other-details-example-AVX2-etc>-x86_64.AppImageAlternatively, if creating the .zsync file post-build via zsyncmake:
zsyncmake -u "[https://github.com/Alex313031/Thorium/releases/download/$TAG/Thorium-$VERSION-x86_64.AppImage](https://github.com/Alex313031/Thorium/releases/download/$TAG/Thorium-$VERSION-x86_64.AppImage)" -o Thorium-$VERSION-x86_64.AppImage.zsync Thorium-$VERSION-x86_64.AppImageBoth the .AppImage and its corresponding .AppImage.zsync file can then be uploaded together as release assets in GitHub Actions.
Thank you for your continuous work on Thorium!
I created the .zync using this command:
$ zsyncmake -u "https://github.com/gz83/thorium/releases/download/M154.0.8037.45/Thorium_Browser_154.0.8037.45_AVX2.AppImage" -o Thorium_Browser-154.0.8037.45_AVX2.AppImage.zsync Thorium_Browser_154.0.8037.45_AVX2.AppImage
[Thorium_Browser-154.0.8037.45_AVX2.AppImage.zsync.tar.gz](https://github.com/user-attachments/files/32863428/Thorium_Browser-154.0.8037.45_AVX2.AppImage.zsync.tar.gz)
Note: A .zync file can also be created for Mercury Browser.
Thank you for your continuous work on Mercury!
Source: Alex313031/thorium