Archive Reader - corresponding source for 4D Data Extractor 1.5.2 build 29

Copyright (c) 2026 REA Studio.
Derived in part from XADMaster, Copyright (c) 2017-present MacPaw Way Ltd.
This component is licensed under GNU LGPL version 2.1 or later. See COPYING.LESSER and the individual file notices.

Archive Reader is a separate command-line process that decodes a requested archive stream and writes the selected fork to standard output. It is not the 4D database extraction engine.

Requirements: Go 1.23 or later (the delivered component was built with Go 1.27.1). The runtime component uses only the Go standard library and needs no network dependencies. Build on macOS or Windows using:
  go build -trimpath -o archive-reader ./cmd/archive-reader
On Windows use archive-reader.exe as the output filename. BUILD.sh is a convenience wrapper for a POSIX shell. Go supports cross compilation using its documented GOOS/GOARCH build settings. Platform signing is a separate distribution step.

The English dictionary is supplied as an embedded input asset. Its build-only reconstruction tool and the required upstream C sources are included. With a C compiler and POSIX shell, run:
  ./REGENERATE-DICTIONARY.sh
This reconstructs the dictionary in build/ and compares it to the embedded asset without changing that asset.

The upstream dictionary and PPMd files in tools/upstream/XADMaster are from:
  https://github.com/MacPaw/XADMaster
  revision 97715bb33b93fb072f6ade7acd4cd29813316712
They are also available in the previously published corresponding-source archive:
  https://github.com/rea-studio-repos/4d-data-extractor/releases/download/v1.5.1/unar-lsar-macos-1.10.7-4d-build27-sources.tar.gz
  SHA-256 e6cefbfbaf58bb93d973799baedc39c641b1838387ac52afdf7a10b9f1360b5d
Their original notices and license are retained. The Go decoder is a REA Studio adaptation of XADMaster Iron and English preprocessing, with separate archive stream framing. See the source-file notices for provenance.

Contact: https://rea.com.co/en/applications/4d-data-extractor/
