feat(bundler): show bundle sizes in the finished output - #15644
Conversation
Package Changes Through af08878There are 14 changes which include tauri with minor, tauri-cli with minor, @tauri-apps/cli with minor, tauri-bundler with minor, tauri-utils with minor, tauri-build with minor, tauri-macos-sign with minor, tauri-runtime-wry with minor, tauri-runtime with minor, tauri-codegen with minor, tauri-macros with minor, tauri-plugin with minor, tauri-driver with minor, @tauri-apps/api with minor Planned Package VersionsThe following package releases are the planned based on the context of changes in this pull request.
Add another change file through the GitHub UI by following this link. Read about change files or the docs at github.com/jbolda/covector |
Append a human-readable size to each bundle path in the "Finished N bundles at:" log, so the sizes are visible right after `tauri build` instead of having to look them up manually. Directory bundles (e.g. macOS `.app`) are measured recursively. Closes tauri-apps#15341
52b85f7 to
b87e629
Compare
|
@Legend-Master both addressed:
On timing: |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
And fail instead of reporting partial sizes
Legend-Master
left a comment
There was a problem hiding this comment.
Thanks.
I have changed human_size to bytesize so we can display 2 digit precisions and made it fail (don't display size) instead of partial/wrong sizes
Closes #15341
After
tauri build, the sizes of the generated bundles aren't shown — you have to look them up manually. This appends a human-readable size to each path in theFinished N bundles at:output:Directory bundles (macOS
.app, etc.) are measured recursively; size lookup is best-effort and falls back to no size annotation if a path can't be read, so it never fails the build.Added a unit test for the size formatting.