appimage build: rm "build" folder if present as it makes build non-reproducible

AFAICT the "build" is created if you "python setup.py install" electrum,
which is now deprecated in any case.
This commit is contained in:
SomberNight 2019-07-19 04:52:26 +02:00
parent f60f690ca9
commit 249e3d496b
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -20,11 +20,13 @@ SQUASHFSKIT_COMMIT="ae0d656efa2d0df2fcac795b6823b44462f19386"
VERSION=`git describe --tags --dirty --always`
APPIMAGE="$DISTDIR/electrum-$VERSION-x86_64.AppImage"
. "$CONTRIB"/build_tools_util.sh
rm -rf "$BUILDDIR"
mkdir -p "$APPDIR" "$CACHEDIR" "$DISTDIR"
. "$CONTRIB"/build_tools_util.sh
# potential leftover from setuptools that might make pip put garbage in binary
rm -rf "$PROJECT_ROOT/build"
info "downloading some dependencies."