build: add a release profile that strips the binaries

No package ships a separate debug package, and the unstripped binaries were
43, 24 and 12 MB. LTO stays off, as the packaging comments already said the
release profile kept it, and unwinding stays on for the workers that catch
panics.
This commit is contained in:
nvrl committed 2026-10-16 10:32:05 +02:00
1 parent 607972cf1e
commit f8c60c9753
1 file changed
+12
+12
View File
@@ -61,3 +61,15 @@ async-trait = "0.1"
futures = "0.3" futures = "0.3"
fuser = "0.18" fuser = "0.18"
libc = "0.2" libc = "0.2"
[profile.release]
# No package ships a separate debug package (the PKGBUILD sets `!debug`, the
# RPM spec sets `debug_package` to nil), and the unstripped binaries weighed
# 43 MB (`pdfs`), 24 MB (`pdfs-app`) and 12 MB (`pdfs-tray`).
strip = "symbols"
# Off on purpose: LTO has broken GTK links for this workspace, which is why
# the packages turn it off as well.
lto = false
# `Workers` and the thumbnail build catch panics to keep the daemon alive, so
# unwinding must stay on.
panic = "unwind"