AppImageCommunity / zsync2

Rewrite of https://github.com/AppImage/zsync-curl, using modern C++, providing both a library and standalone tools.
Other
132 stars 25 forks source link

Upgrade Appimage runtime? #76

Open lalten opened 7 months ago

lalten commented 7 months ago

The latest zsync2 releases fail on Ubuntu 22+ because of the Fuse 2 thing.

❯ wget https://github.com/AppImageCommunity/zsync2/releases/download/2.0.0-alpha-1-20230304/zsync2-63-1608115-x86_64.AppImage
❯ chmod +x zsync2-63-1608115-x86_64.AppImage
❯ ./zsync2-63-1608115-x86_64.AppImage --version
dlopen(): error loading libfuse.so.2

AppImages require FUSE to run. 
You might still be able to extract the contents of this AppImage 
if you run it with the --appimage-extract option. 
See https://github.com/AppImage/AppImageKit/wiki/FUSE 
for more information

Would be nice to switch to a newer statically linked AppImage runtime.

Workaround:

❯ wget https://github.com/lalten/type2-runtime/releases/download/build-2022-10-03-f216acf/runtime-fuse3-x86_64
❯ wget https://github.com/AppImageCommunity/zsync2/releases/download/2.0.0-alpha-1-20230304/zsync2-63-1608115-x86_64.AppImage
❯ chmod +x zsync2-63-1608115-x86_64.AppImage
❯ offset=$(( $(./zsync2-63-1608115-x86_64.AppImage --appimage-offset) + 1 ))
❯ tail -c +$offset zsync2-63-1608115-x86_64.AppImage > zsync2.sqfs
❯ cat runtime-fuse3-x86_64 zsync2.sqfs > zsync2.appimage
❯ chmod +x zsync2.appimage
❯ ./zsync2.appimage --version
zsync2 version 2.0.0-alpha-1 (commit 1608115), build 63 built on 2023-03-04 00:30:21 UTC
probonopd commented 7 months ago

Agree. Will need to switch to the new appimagetool once it is ready. In the meantime, sudo apt-get -y install libfuse2.