I am trying to make my snap slimmer by not including some libraries. My Question is: How exactly does snapcraft decide which libs to pack into the snap?
I am using the same method as electron-builder does here: https://github.com/electron-userland/electron-builder/blob/28cb86bdcb6dd0b10e75a69ccd34ece6cca1d204/packages/app-builder-lib/templates/snap/snapcraft.yaml#L29
If I remove too much, I get warnings. But I can remove some things without warning. And, and this puzzles me: Some things (for example
gconv) I cannot get rid of.
What is the logic here?
Does it start by copying everything from the base snap…?