Download legionhjyu

These are standalone executables built with PyInstaller. They include the Python runtime and all legionhjyu source files, so you don't need Python installed on your machine.

Latest release: v1.0.0

legion-linux-x64

~12 MB · No dependencies legion-macos-x64

~13 MB · No dependencies legion-windows.exe

~14 MB · No dependencies

Installation after download

Linux and macOS

bash
## Make it executable
chmod +x legion-linux-x64

## Move to PATH
mv legion-linux-x64 ~/.local/bin/legion

## Verify
legion version

Windows

  1. Download legion-windows.exe
  2. Rename it to legion.exe
  3. Move it to a folder that's on your system PATH (for example C:\Users\YourName\bin\)
  4. Open Command Prompt or PowerShell and run legion version

Verify the download

After installing, run:

bash
legion version

Expected output:

lhj
legionhjyu 1.0.0

Then try:

bash
echo 'echo "hello from legionhjyu!"' > test.lhj
legion run test.lhj
lhj
hello from legionhjyu!

Build from source

If you prefer to build from source or need a different platform:

bash
pip install pyinstaller
git clone https://github.com/legionhjyu/legionhjyu.git
cd legionhjyu
pyinstaller legion.spec

The output goes to dist/legion (Linux/macOS) or dist/legion.exe (Windows).

See Installation for the full source-based install flow.

What's included

The binary bundles:

  • The legionhjyu interpreter (lexer, parser, tree-walking evaluator)
  • All standard library .lhj files (io, collections, random, json_mod)
  • The built-in math, strings, and os modules
  • The legion pkg package manager
  • The interactive REPL

Packages you install with legion pkg install are stored separately in ~/.legion/packages/ and work the same way regardless of whether you installed from source or a binary.

Platform notes

The Linux binary was built on Ubuntu 22.04. It should run on any x86_64 Linux with glibc 2.17 or later. If you're on an older distro or a different architecture, build from source instead.

The macOS binary requires macOS 11 or later.

The Windows binary requires Windows 10 or later.