nw.js icon indicating copy to clipboard operation
nw.js copied to clipboard

strip prebuild for Linux

Open oech3 opened this issue 6 months ago • 7 comments

Some binaries avaiable at https://dl.nwjs.io/v0.101.0/nwjs-v0.101.0-linux-x64.tar.gz are not stripped by strip --strip-all or strip --strip-unneeded.

oech3 avatar Jun 26 '25 02:06 oech3

Which ones?

ayushmanchhabra avatar Jun 26 '25 05:06 ayushmanchhabra

~Almost everything? At least for strip --strip-unneeded nwjs-v0.101.0-linux-x64/lib/*.so dropped 100MB~ Everything.

oech3 avatar Jun 26 '25 05:06 oech3

Everything.

It's shown stripped here:

file nw
nw: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[xxHash]=b2f200131522a885, stripped
file lib/libnw.so
lib/libnw.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[xxHash]=2e83f487ad660cf4, stripped

rogerwang avatar Jun 27 '25 16:06 rogerwang

Would you strip --strip-all for executables and --strip-unneeded for .so? ~> strip --version GNU strip (GNU Binutils) 2.44.0

oech3 avatar Jun 27 '25 17:06 oech3

Sorry. Those 2 bins are already stripped at least for.

oech3 avatar Jun 27 '25 17:06 oech3

Sorry. Those 2 bins are already stripped at least for.

@oech3 Are there any binaries not stripped? Otherwise this can be closed.

ayushmanchhabra avatar Jul 01 '25 14:07 ayushmanchhabra

file /tmp/dec/nwjs-v0.101.1-linux-x64/chrome_crashpad_handler /tmp/dec/nwjs-v0.101.1-linux-x64/lib/*|grep not
/tmp/dec/nwjs-v0.101.1-linux-x64/chrome_crashpad_handler:     ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[xxHash]=056be46863d44ea0, with debug_info, not stripped
/tmp/dec/nwjs-v0.101.1-linux-x64/lib/libEGL.so:               ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[xxHash]=fe0993b07c50bbcf, with debug_info, not stripped
/tmp/dec/nwjs-v0.101.1-linux-x64/lib/libGLESv2.so:            ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[xxHash]=69e7c6a80157d12c, with debug_info, not stripped
/tmp/dec/nwjs-v0.101.1-linux-x64/lib/libvk_swiftshader.so:    ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[xxHash]=1ab4c29b5171e75e, with debug_info, not stripped
/tmp/dec/nwjs-v0.101.1-linux-x64/lib/libvulkan.so.1:          ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[xxHash]=f8737710ffaf1dca, with debug_info, not stripped

oech3 avatar Jul 01 '25 14:07 oech3