Reading the repo
Opening the box…
Reading the repo
Opening the box…
How to install on Linux
Saved setup from just now
Will it work on Linux?
Then run bash setup.sh. It stops at the first error and is safe to run again. Servers and tests aren't started; it lists them at the end. Read it first.
git clone https://github.com/electron/extract-zip.git cd extract-zip
Node.js 22.23.4, Rust stable
# needs nvm: https://github.com/nvm-sh/nvm nvm install nvm use curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
corepack enable yarn install cargo build
cargo run
yarn test cargo test
ESM only:
import extract from '@electron-internal/extract-zip';
await extract('archive.zip', { dir: '/absolute/output/path' });
dir (required, absolute) is the only option. Everything else is fixed: existing
files are overwritten, archive mode bits (masked to 0o777) and mtimes are
preserved, symlinks are created (skipped on Windows without symlink privilege),
and writes are parallelised across min(cpus, 8) workers. The original's
onEntry, defaultDirMode, and defaultFileMode are not supported, since no
consumer in the electron org uses them.
No reports for Linux yet.
GitManual AI Agent reads the 7 key files and writes a step-by-step guide for Linux. Once written, it's saved for everyone.