Which files are safe to delete when packaging?


#1

Hi!

I recently made the switch from NW.js to Electron on a simple application, and when packaging for Windows (using electron-packager), I noticed that it had a lot more files, and the final size of the package was quite a bit bigger. So, I’ve deleted the following DLLs:

  • d3dcompiler_47.dll
  • ffmpegsumo.dll
  • msvcp120.dll
  • msvcr120.dll
  • pdf.dll
  • vccorlib120.dll
  • xinput1_3.dll

The app is very simple, doesn’t use any resources other opening and saving files, and basic javascript. While it’s working fine on my machine, will I run into any problems if I distribute the app without those files?

Thanks!


#2

I can see problems with the following:

  • msvcp120.dll
  • msvcr120.dll
  • vccorlib120.dll

Which are C++ runtime libs. Everything’s ok as long as the user has a compatible version installed on his/her PC. Otherwise, Bad Things ™ wil happen.

In the case Chrome is so inclined, it may also require d3dcompiler_47.dll to compile shaders. Just in case it wants to accelerate everything to the GPU.


#3

Thanks for the reply Francesco!

I’ve added the ones you mentioned back. Looks like they compress pretty well, the package size increased by less than 2 mb, which makes me happy! :smile: