diff --git a/contrib/build-linux/appimage/README.md b/contrib/build-linux/appimage/README.md index b4c8f8faa..cccc884da 100644 --- a/contrib/build-linux/appimage/README.md +++ b/contrib/build-linux/appimage/README.md @@ -47,3 +47,20 @@ see [issue #5159](https://github.com/spesmilo/electrum/issues/5159). ### How can I see what is included in the AppImage? Execute the binary as follows: `./electrum*.AppImage --appimage-extract` + +### How to investigate diff between binaries if reproducibility fails? +``` +cd dist/ +./electrum-*-x86_64.AppImage1 --appimage-extract +mv squashfs-root/ squashfs-root1/ +./electrum-*-x86_64.AppImage2 --appimage-extract +mv squashfs-root/ squashfs-root2/ +$(cd squashfs-root1; find -type f -exec sha256sum '{}' \; > ./../sha256sum1) +$(cd squashfs-root2; find -type f -exec sha256sum '{}' \; > ./../sha256sum2) +diff sha256sum1 sha256sum2 > d +cat d +``` + +Useful binary comparison tools: +- vbindiff +- diffoscope