Skip to content

ci: integrate UPX compression and link-time optimizations for smaller MSI#48

Merged
0xarchit merged 2 commits into
mainfrom
ci/upx-integration
May 9, 2026
Merged

ci: integrate UPX compression and link-time optimizations for smaller MSI#48
0xarchit merged 2 commits into
mainfrom
ci/upx-integration

Conversation

@0xarchit
Copy link
Copy Markdown
Owner

@0xarchit 0xarchit commented May 9, 2026

Description:
This PR optimizes the release pipeline to significantly reduce the final installer size by introducing binary compression and advanced linker flags.

Key Changes:

  • UPX Compression: Added upx --best --lzma to the release workflow. The main executable is now compressed before being bundled into the MSI, reducing the footprint of the core
    binary.
  • Linker Optimizations: Updated RUSTFLAGS to include:
    • /OPT:REF: Eliminates functions and data that are never referenced.
    • /OPT:ICF: Performs Identical COMDAT Folding (removes redundant code).
    • /INCREMENTAL:NO: Ensures a clean, non-incremental production build.

Benefits:

  • Smaller MSI Size: Direct reduction in user download time and bandwidth usage.
  • Hardened Release: More efficient binary structure via optimized link-time transformations.

@0xarchit 0xarchit self-assigned this May 9, 2026
Copy link
Copy Markdown
Owner Author

@0xarchit 0xarchit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes reviewed

@0xarchit 0xarchit merged commit 42413bb into main May 9, 2026
3 checks passed
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