Table of Contents

Building EditBench from source

Download editbench-0.1.12-source.tar.gz (or the ZIP) from the download page.

What you need

On Debian and Ubuntu:

sudo apt install build-essential pkg-config libpcre2-dev

Building

tar -xzf editbench-0.1.12-source.tar.gz
cd editbench-0.1.12-source
cargo build --release
./target/release/editbench

cargo test –workspace runs about 300 tests.

Packages

scripts/build-packages.sh makes the .deb and the tar archive in dist/ (it needs dpkg-deb and dpkg-shlibdeps). scripts/build-source.sh makes the source packages.

scripts/build-windows.sh builds the Windows installer and ZIP on Linux. It needs the Rust target x86_64-pc-windows-gnu, MinGW-w64 (gcc and windres), makensis and zip.

A program built this way needs the same glibc as the computer that built it, or newer. The published packages were built against glibc 2.35 with cargo zigbuild; the script explains how at its top.

Layout

Path What it holds
src/ The window, the editor, commands and dialogs
crates/editbench-search Search and replace, Find in Files
crates/editbench-io Encodings and safe saving
crates/editbench-text Compare, sort, JSON, XML and HTML tools
crates/editbench-automation Macros, scripts, tools and templates
crates/editbench-remote FTP, SFTP, SSH and Telnet
spec/ The specification the program was written from

EditBench is under the MIT licence. Licences of bundled parts are in third_party/licenses.