Browse Source

AppImage: Bundle more binaries to increase compatibility

This slightly increases the AppImage size but allows us to be more
compatible with older distributions.

-----

taken from Electron-Cash/Electron-Cash@96644acd6fd66f866a86613974bb68bb99f00d8c
dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
Axel Gembe 6 years ago
committed by SomberNight
parent
commit
69b673b8a1
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 2
      contrib/build-linux/appimage/Dockerfile
  2. 14
      contrib/build-linux/appimage/build.sh

2
contrib/build-linux/appimage/Dockerfile

@ -21,7 +21,7 @@ RUN apt-get update -q && \
libudev-dev=204-5ubuntu20.31 \ libudev-dev=204-5ubuntu20.31 \
gettext=0.18.3.1-1ubuntu3.1 \ gettext=0.18.3.1-1ubuntu3.1 \
libzbar0=0.10+doc-9build1 \ libzbar0=0.10+doc-9build1 \
faketime=0.9.5-2 \ libdbus-1-3=1.6.18-0ubuntu4.5 \
&& \ && \
rm -rf /var/lib/apt/lists/* && \ rm -rf /var/lib/apt/lists/* && \
apt-get autoremove -y && \ apt-get autoremove -y && \

14
contrib/build-linux/appimage/build.sh

@ -157,12 +157,8 @@ info "finalizing AppDir."
cd "$APPDIR" cd "$APPDIR"
# copy system dependencies # copy system dependencies
# note: temporarily move PyQt5 out of the way so
# we don't try to bundle its system dependencies.
mv "$APPDIR/usr/lib/python3.6/site-packages/PyQt5" "$BUILDDIR"
copy_deps; copy_deps; copy_deps copy_deps; copy_deps; copy_deps
move_lib move_lib
mv "$BUILDDIR/PyQt5" "$APPDIR/usr/lib/python3.6/site-packages"
# apply global appimage blacklist to exclude stuff # apply global appimage blacklist to exclude stuff
# move usr/include out of the way to preserve usr/include/python3.6m. # move usr/include out of the way to preserve usr/include/python3.6m.
@ -171,10 +167,12 @@ info "finalizing AppDir."
mv usr/include.tmp usr/include mv usr/include.tmp usr/include
) || fail "Could not finalize AppDir" ) || fail "Could not finalize AppDir"
# copy libusb here because it is on the AppImage excludelist and it can cause problems if we use system libusb # We copy some libraries here that are on the AppImage excludelist
info "Copying libusb" info "Copying additional libraries"
cp -f /usr/lib/x86_64-linux-gnu/libusb-1.0.so "$APPDIR/usr/lib/libusb-1.0.so" || fail "Could not copy libusb" (
# On some systems it can cause problems to use the system libusb
cp -f /usr/lib/x86_64-linux-gnu/libusb-1.0.so "$APPDIR/usr/lib/libusb-1.0.so" || fail "Could not copy libusb"
)
info "stripping binaries from debug symbols." info "stripping binaries from debug symbols."
# "-R .note.gnu.build-id" also strips the build id # "-R .note.gnu.build-id" also strips the build id

Loading…
Cancel
Save