electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit c67705e116fd2a0822c15b284feede3576ea4269
parent 8a1052330d9a7bbb239d5ecea6c1bef94b3e16f2
Author: SomberNight <somber.night@protonmail.com>
Date:   Wed, 10 Jul 2019 20:26:25 +0200

appimage build: build was failing on some host systems

On Ubuntu host, build succeeded; but e.g. on Manjaro host, it failed with:
```
./build.sh: line 233: /opt/electrum/contrib/build-linux/appimage/../../../contrib/build-linux/appimage/.cache/appimage/appimagetool: No such file or directory
```

Diffstat:
Mcontrib/build-linux/appimage/build.sh | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/contrib/build-linux/appimage/build.sh b/contrib/build-linux/appimage/build.sh @@ -229,8 +229,11 @@ find -exec touch -h -d '2000-11-11T11:11:11+00:00' {} + info "creating the AppImage." ( cd "$BUILDDIR" - chmod +x "$CACHEDIR/appimagetool" - "$CACHEDIR/appimagetool" --appimage-extract + cp "$CACHEDIR/appimagetool" "$CACHEDIR/appimagetool_copy" + # zero out "appimage" magic bytes, as on some systems they confuse the linker + sed -i 's|AI\x02|\x00\x00\x00|' "$CACHEDIR/appimagetool_copy" + chmod +x "$CACHEDIR/appimagetool_copy" + "$CACHEDIR/appimagetool_copy" --appimage-extract # We build a small wrapper for mksquashfs that removes the -mkfs-fixed-time option # that mksquashfs from squashfskit does not support. It is not needed for squashfskit. cat > ./squashfs-root/usr/lib/appimagekit/mksquashfs << EOF