@@ -10,10 +10,11 @@ BUILDDIR="$CONTRIB_APPIMAGE/build/appimage"
10
10
APPDIR=" $BUILDDIR /electrum.AppDir"
11
11
CACHEDIR=" $CONTRIB_APPIMAGE /.cache/appimage"
12
12
13
+ export GCC_STRIP_BINARIES=" 1"
14
+
13
15
# pinned versions
14
16
PYTHON_VERSION=3.7.6
15
17
PKG2APPIMAGE_COMMIT=" eb8f3acdd9f11ab19b78f5cb15daa772367daf15"
16
- LIBSECP_VERSION=" b408c6a8b287003d1ade5709e6f7bc3c7f1d5be7"
17
18
SQUASHFSKIT_COMMIT=" ae0d656efa2d0df2fcac795b6823b44462f19386"
18
19
19
20
@@ -45,7 +46,6 @@ info "building python."
45
46
tar xf " $CACHEDIR /Python-$PYTHON_VERSION .tar.xz" -C " $BUILDDIR "
46
47
(
47
48
cd " $BUILDDIR /Python-$PYTHON_VERSION "
48
- export SOURCE_DATE_EPOCH=1530212462
49
49
LC_ALL=C export BUILD_DATE=$( date -u -d " @$SOURCE_DATE_EPOCH " " +%b %d %Y" )
50
50
LC_ALL=C export BUILD_TIME=$( date -u -d " @$SOURCE_DATE_EPOCH " " +%H:%M:%S" )
51
51
# Patch taken from Ubuntu http://archive.ubuntu.com/ubuntu/pool/main/p/python3.7/python3.7_3.7.6-1.debian.tar.xz
@@ -77,26 +77,8 @@ git clone "https://github.com/squashfskit/squashfskit.git" "$BUILDDIR/squashfski
77
77
MKSQUASHFS=" $BUILDDIR /squashfskit/squashfs-tools/mksquashfs"
78
78
79
79
80
- info " building libsecp256k1."
81
- (
82
- git clone https://github.com/bitcoin-core/secp256k1 " $CACHEDIR " /secp256k1 \
83
- || (cd " $CACHEDIR " /secp256k1 && git reset --hard && git pull)
84
- cd " $CACHEDIR " /secp256k1
85
- git reset --hard " $LIBSECP_VERSION "
86
- git clean -f -x -q
87
- export SOURCE_DATE_EPOCH=1530212462
88
- echo " LDFLAGS = -no-undefined" >> Makefile.am
89
- ./autogen.sh
90
- ./configure \
91
- --prefix=" $APPDIR /usr" \
92
- --enable-module-recovery \
93
- --enable-experimental \
94
- --enable-module-ecdh \
95
- --disable-jni \
96
- -q
97
- make -j4 -s || fail " Could not build libsecp"
98
- make -s install > /dev/null || fail " Could not install libsecp"
99
- )
80
+ " $CONTRIB " /make_libsecp256k1.sh || fail " Could not build libsecp"
81
+ cp -f " $PROJECT_ROOT /electrum/libsecp256k1.so.0" " $APPDIR /usr/lib/libsecp256k1.so.0" || fail " Could not copy libsecp to its destination"
100
82
101
83
102
84
appdir_python () {
@@ -224,7 +206,6 @@ rm -rf "$PYDIR"/site-packages/PyQt5/Qt.so
224
206
225
207
# these are deleted as they were not deterministic; and are not needed anyway
226
208
find " $APPDIR " -path ' */__pycache__*' -delete
227
- rm " $APPDIR " /usr/lib/libsecp256k1.a
228
209
# note that jsonschema-*.dist-info is needed by that package as it uses 'pkg_resources.get_distribution'
229
210
# also, see https://gitlab.com/python-devs/importlib_metadata/issues/71
230
211
for f in " $PYDIR " /site-packages/jsonschema-* .dist-info; do mv " $f " " $( echo " $f " | sed s/\. dist-info/\. dist-info2/) " ; done
0 commit comments