Repository navigation
build(package): leave static libraries and test programs out of the macOS and Linux packages - #115
Merged
Merged
Conversation
…acOS and Linux packages The Linux download was 272 MB against 67 MB for Windows and 72 MB for macOS. The macOS and Linux packages are made straight from the stage directory rather than from `cmake --install`, so they skip the filter in cmake/install/pre_install.cmake that leaves out build-only files. Windows packages the installed tree and was already filtered. Of the Linux package's ~600 MB uncompressed, 275 MB were static `.a` libraries (libIPCore.a alone is 54 MB) and 33 MB were test programs. The macOS app carried 47 MB of `.a` files and three test programs. src/build/prune_package.py applies the same filter to the stage directory: `.a`, `.la`, `.prl`, `.o`, `.obj`, lib/cmake, lib/pkgconfig, and *Test programs in bin/ and Contents/MacOS/. The branch, dev and release workflows run it when packaging, after the tests and, on macOS, before signing. On the #111 Linux artifact it removed 97 files (308 MB), and the tarball went from 272 MB to 71 MB. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Michael Oliver <mcoliver@gmail.com>
mcoliver
added a commit
that referenced
this pull request
Oct 11, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Michael Oliver <mcoliver@gmail.com>
mcoliver
added a commit
that referenced
this pull request
Oct 11, 2026
…#112) * docs(release): add 2026.13 release notes and hover preview screenshot Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Michael Oliver <mcoliver@gmail.com> * docs(release): add #113, #114, #115 and #116 to the 2026.13 notes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Michael Oliver <mcoliver@gmail.com> --------- Signed-off-by: Michael Oliver <mcoliver@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The Linux download is 272 MB, against 67 MB for Windows and 72 MB for macOS.
The macOS and Linux packages are made straight from the stage directory (
_build/stage/app) rather than fromcmake --install. That skips the filter incmake/install/pre_install.cmakethat already leaves out build-only files. Windows packages the installed tree, so it was already filtered.What's in the Linux package that nothing uses at run time (uncompressed):
.alibraries (84 files;libIPCore.aalone is 54 MB)AudioRendererTest,LoadingSharedLibrariesTest,ApplicationTest, …)The macOS app also carries 47 MB of
.afiles and three test programs (FastMemcpyTest,MetalPresentationTest,QFontTest).Fix
src/build/prune_package.py <UTV.app or stage dir> [--dry-run]applies the same filter aspre_install.cmake:.a,.la,.prl,.oand.objfileslib/cmakeandlib/pkgconfig*Testprograms inbin/andContents/MacOS/The branch, dev and release workflows run it in their packaging steps. That's after the tests, which use the test programs, and before signing on macOS.
Nothing outside CI references the test programs (checked the source, scripts, docs and tools). The headers in
Contents/includestay. Binaries aren't stripped: that would save only about 8 MB more on Linux, and the symbols keep stack traces from crash reports readable.Testing
bin/. The repacked tarball is 71 MB (from 272 MB).--dry-runon the installed 2026.12 app lists 93 files (48 MB), including the three test programs.