Skip to content

build(package): leave static libraries and test programs out of the macOS and Linux packages - #115

Merged
mcoliver merged 1 commit into
mainfrom
build/prune-packages
Oct 11, 2026
Merged

mcoliver merged 1 commit into
mainfrom
build/prune-packages

Conversation

@mcoliver

@mcoliver mcoliver commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator

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 from cmake --install. That skips the filter in cmake/install/pre_install.cmake that 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):

Item Size
Static .a libraries (84 files; libIPCore.a alone is 54 MB) 275 MB
Test programs (AudioRendererTest, LoadingSharedLibrariesTest, ApplicationTest, …) 33 MB

The macOS app also carries 47 MB of .a files and three test programs (FastMemcpyTest, MetalPresentationTest, QFontTest).

Fix

src/build/prune_package.py <UTV.app or stage dir> [--dry-run] applies the same filter as pre_install.cmake:

  • .a, .la, .prl, .o and .obj files
  • lib/cmake and lib/pkgconfig
  • *Test programs in bin/ and Contents/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/include stay. 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

  • Linux: on the fix(options): label every field in the options debug dump correctly #111 artifact it removed 97 files (308 MB uncompressed), with no test programs left in bin/. The repacked tarball is 71 MB (from 272 MB).
  • macOS: a --dry-run on the installed 2026.12 app lists 93 files (48 MB), including the three test programs.
  • The branch build of this PR packages with the script, so its artifacts show the real result.

…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
mcoliver merged commit cc52db8 into main Oct 11, 2026
16 checks passed
@mcoliver
mcoliver deleted the build/prune-packages branch October 11, 2026 09:28
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant