Skip to content

fix(build): Replace stuck tar with 7-Zip for Windows CEF extraction#173

Open
adam2am wants to merge 1 commit intoblackboardsh:mainfrom
adam2am:fix/7zip-extraction
Open

fix(build): Replace stuck tar with 7-Zip for Windows CEF extraction#173
adam2am wants to merge 1 commit intoblackboardsh:mainfrom
adam2am:fix/7zip-extraction

Conversation

@adam2am
Copy link

@adam2am adam2am commented Feb 20, 2026

Issue

Hey, so when building Electrobun on Windows 10 Pro CEF extraction just... froze. tar.exe sat at 0% CPU, 0 progress for 10+ minutes. Had to kill it. No disk activity, just hangs. Basically made Electrobun unbuildable on Windows without manual intervention.

Solution

Use 7zip. Check if its installed.

  • auto-install via winget if not present, fall back to tar if that fails.
  • Two-step extraction: .bz2 -> .tar -> contents

Impact

  • Before: tar hangs indefinitely, build fails
  • After: 7-Zip extracts in 1-2 minutes, reliable
  • Fallback: Still tries tar if 7-Zip unavailable

Tested on Windows 10 Pro, happy to hear your thoughts

- Auto-installs 7-Zip via winget if not present
- Falls back to tar if winget fails (corporate/restricted environments)
- Reduces CEF extraction from 10-30min to 1-2min on Windows
- Two-step extraction: .bz2 -> .tar -> contents
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