Skip to content

Compress blink Linux binaries with UPX in release build - #225

Merged
TomasVotruba merged 1 commit into
mainfrom
blink-gzip-store-binaries
Oct 26, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
blink-gzip-store-binaries

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Shrinks the bundled blink binaries in the release artifact.

blink has no external dependencies and is already built stripped (-s -w -trimpath), so the Go code itself cannot be shrunk further. The only remaining lever is compression at rest.

UPX packs the Linux binaries ~67-71% smaller (measured locally):

  • blink-linux-amd64: 4.0 MB -> 1.3 MB
  • blink-linux-arm64: 3.9 MB -> 1.1 MB

Packed binaries self-extract and run normally, so no runtime change is needed.

Linux-only on purpose: UPX breaks code-signing on macOS/Apple Silicon and trips antivirus false-positives on Windows, so darwin and windows targets are left untouched.

@TomasVotruba
TomasVotruba merged commit d95cd4d into main Oct 26, 2026
17 checks passed
@TomasVotruba
TomasVotruba deleted the blink-gzip-store-binaries branch October 26, 2026 21:42
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