Closed albertodonato closed 1 year ago
The binaries shipped in the snap are not stripped, which makes the snap bigger. From my test, stripping them saves ~200Mb of uncompressed space.
It should be enough to add strip -s $CRAFT_PART_INSTALL/bin/* at the end of the override-build target.
strip -s $CRAFT_PART_INSTALL/bin/*
override-build
Ideally, snapcraft should strip binaries by default (see this bug)
The binaries shipped in the snap are not stripped, which makes the snap bigger. From my test, stripping them saves ~200Mb of uncompressed space.
It should be enough to add
strip -s $CRAFT_PART_INSTALL/bin/*
at the end of theoverride-build
target.Ideally, snapcraft should strip binaries by default (see this bug)