Skip to content

Add support for Zopfli compression. - #363

Merged
megastep merged 3 commits into
megastep:masterfrom
Ferroin:zopfli-support
Sep 4, 2026
Merged

megastep merged 3 commits into
megastep:masterfrom
Ferroin:zopfli-support

Conversation

@Ferroin

@Ferroin Ferroin commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Zopfli is a tool for gzip/deflate/zlib compatible compression that runs much slower than the standard implementations, but produces measurably better compression ratios.

The resultant compressed files are 100% compatible with standard gzip tooling for extraction, so this provides a way for users to get better compression ratios without sacrificing portability of the resultant archives.

Zopfli is a tool for gzip/deflate/zlib compatible compression that runs
much slower than the standard implementations, but produces measurably
better compression ratios.

The resultant compressed files are 100% compatible with standrd gzip
tooling for extraction, so this provides a way for users to get better
compression ratios without sacrificing portability of the resultant
archives.
Copilot AI lite review requested due to automatic review settings September 3, 2026 11:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The changes are small and cohesive, with only a minor test portability nit identified.

Pull request overview

This PR adds a new compression option to makeself archives using Zopfli, enabling better gzip-compatible compression ratios while keeping output compatible with standard gzip tooling.

Changes:

  • Add --zopfli CLI flag and wire it into the compressor selection logic in makeself.sh.
  • Document the new option in the man page (makeself.1).
  • Extend CI and test coverage to exercise the new compression mode.
File summaries
File Description
test/extracttest Adds a new extraction/check test path for --zopfli.
makeself.sh Adds --zopfli CLI handling and compressor command mapping.
makeself.1 Documents the new --zopfli option.
.github/workflows/build.yml Installs zopfli in Linux CI images so the new test can run.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread test/extracttest
@megastep megastep self-assigned this Sep 4, 2026
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

@megastep megastep left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks, I'll merge it if you make the tests more resilient on platforms lacking this package (such as Rocky Linux here).

It’s technically available via EPEL, but it’s also likely fine to just
skip that case instead of dealing with pulling in EPEL given that the
packaged version is functionally identical across the tested distros.
@megastep
megastep merged commit cd849d6 into megastep:master Sep 4, 2026
12 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.

3 participants