Xpra: Ticket #2550: trim win32 client builds

They don't really need all the video codecs since we don't do video with webcam forwarding and webcam forwarding is currently broken anyway. Then we can also drop numpy and save tens of MB.



Wed, 15 Jan 2020 14:51:05 GMT - totaamwin32: status changed; resolution set

What's left:

$ du -sk * | sort -n | tail
548     libssl-1_1-x64.dll
612     Plink.exe
620     msvcrt.dll
656     etc
688     openssl.exe
881     icons
2672    libcrypto-1_1-x64.dll
3356    libpython3.8.dll
40857   share
128957  lib

In share:

$ du -sk share/* | sort -n | tail
4       share/p11-kit
44      share/gst-plugins-base
54      share/gstreamer-1.0
168     share/fontconfig
217     share/locale
401     share/icons
583     share/glib-2.0
3012    share/xml
16136   share/fonts
20232   share/gir-1.0

Maybe trim the fonts?

$ du -sk share/fonts/* | sort -n | tail
704     share/fonts/cantarell
2224    share/fonts/adobe-source-code-pro
3184    share/fonts/gsfonts
10024   share/fonts/TTF

In lib:

$ du -sk lib/* | sort -n | tail
2327    lib/girepository-1.0
2816    lib/gstreamer-1.0
3356    lib/libpython3.8.dll
3376    lib/libvpx-1.dll
3548    lib/librsvg-2-2.dll
4564    lib/libpdfium.dll
5611    lib/xpra
6484    lib/libgtk-3-0.dll
9480    lib/library.zip
21888   lib/avcodec-58.dll

in library.zip:

$ du -sk * | sort -n | tail
252     email
273     multiprocessing
293     comtypes
316     pyasn1
323     distutils
361     pycparser
424     pkg_resources
625     paramiko
4356    encodings
23300   OpenGL

The best way to save more would be to completely skip or rebuild a leaner ffmpeg avcodec library. This will do for now.

We've saved 7M on the exe size:

$ du -sm *exe
58      Xpra-Client-Python3-x86_64_Setup_4.0-r24958.exe
51      Xpra-Client-Python3-x86_64_Setup_4.0-r24971.exe

Sat, 25 Jan 2020 09:32:13 GMT - Antoine Martin:

Added weight for icons: #2563


Wed, 12 Feb 2020 15:09:52 GMT - stdedos: attachment set


Wed, 12 Feb 2020 15:10:11 GMT - stdedos:

Can this font somehow be added?

(xpra_cmd:4876): Pango-WARNING **: 10:47:07.914: couldn't load font "Bitstream Vera Sans Not-Rotated 14.662109375", falling back to "Sans Not-Rotated 14.662109375", expect ugly output.

I don't remember a client log where I haven't seen this message. Maybe it's also related to the fact that non-bold dots are hard to read in the terminal?


Wed, 12 Feb 2020 15:44:46 GMT - Antoine Martin:

Can this font somehow be added?

No: #2590

Maybe it's also related to the fact that non-bold dots are hard to read in the terminal?

It isn't. Xpra has no control over how fonts are handled in your terminal application.


Sat, 23 Jan 2021 05:54:18 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/2550