Closed yurenchen000 closed 2 years ago
Thanks for the detailed feedback. If you have spare time please submit PR with fixes to snap repo https://github.com/RedisDesktop/redisdesktopmanager-snap
Thanks for the detailed feedback. If you have spare time please submit PR with fixes to snap repo https://github.com/RedisDesktop/redisdesktopmanager-snap
I'm new to snapsnapcraft.yaml, after little dig, I realized that:
qt build flag -force-debug-info
caused the debug version so (which is large).
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -219,7 +219,6 @@ parts:
-sysconfdir /etc/xdg \
-examplesdir /usr/lib/$SNAPCRAFT_ARCH_TRIPLET/qt5/examples \
-release \
- -force-debug-info \
-opensource \
-confirm-license \
-system-freetype \
I just remove it, build on snapcraft.io, and test the .snap file,
test file can be download here: https://launchpad.net/~build.snapcraft.io/+snap/eab9cbc132ca0e1fc59975d7c0203dea/+build/1697167
$ sudo snap install --devmode ./resp-app-test_2022.2+594318e6_amd64.snap
$ ls -lh resp-app-test_2022.2+594318e6_amd64.snap
-rwxrwxr-x 1 chen chen 262M 3月 9 03:55 resp-app-test_2022.2+594318e6_amd64.snap
$ du -had1 /snap/resp-app-test
747M /snap/resp-app-test
.snap file reduce to 262MB, mount size 747MB.
try to run it, everything seems same as orig version.
-force-debug-info
-separate-debug-info
I guess the two flag will generate separete debug info, which may not increase release file.
Merged. Thanks!
version
Is your feature request related to a problem?
RESP.app is awsome, and snap is easy to use. It's the best redis gui client I've ever used.
just that the snap version is very huge, 1.1GB .snap, 2.7G after mount. it would be perfect if it could be smaller.
Describe the solution you'd like
After a little investigation, I found that the large files are mainly dependent libraries, which are debug version, not stripped. If we have stripped binarys, the file size should be much smaller.
some details:
largest files:
try to strip a .so:
199M → 7M, size reduce significant effect.