@ -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"
(
# 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"
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