Metanorma-CLI single executable binary
Metanorma is a sophisticated document publishing tool for standardization bodies. It is written in Ruby with a number of dependencies.
User organizations of Metanorma run on multiple platforms, including Windows, Linux and macOS.
The challenge is how to ensure the distribution and installation of Metanorma works on the target system reliably.
Today, Metanorma offers:
Linux setup script
macOS Homebrew package
Windows Chocolatey package
However, all these packages require a long installation process with caveats, such as being prone to network failures and a network of dependencies to install.
This repo attempts to package dependencies using
tool that packages a Ruby interpreter with gems and dependencies
into a RAM disk.
Our goal is to make installation quick and dependable for our users.
Compile executable (only macOS supported for now)
$: make build
This will clear
build/ folder files and compile a new version
metanorma_entry_point Ruby script.
This script loads all dependencies in order to ruby packer correctly link all gems and their native extensions.
Currently, it uses 2 forks of
SassC was patched in order to load
ruby-jingfork skips the usage of