{% extends "base.html" %} {% from "_macros.html" import cmd %} {% block title %}Install Porjay{% endblock %} {% block content %}

Install Porjay

Porjay is a single self-contained binary with zero runtime dependencies. On Linux or macOS, run:

{{ cmd(["curl -fsSL " ~ cfg.PUBLIC_BASE_URL ~ "/install.sh | sh"], label="Install command") }}

It downloads the right binary for your platform, verifies its SHA-256 checksum, and installs {{ cli }} into ~/.local/bin. Verify with:

{{ cmd([cli ~ " version"], label="Version command") }}

If that says command not found: {{ cli }}, ~/.local/bin is not on your PATH yet. On macOS (zsh) run this once, then open a new terminal. With bash, use ~/.bashrc instead, or ~/.bash_profile on macOS.

{{ cmd(["echo 'export PATH=\"$HOME/.local/bin:$PATH\"' >> ~/.zshrc"], label="Add to PATH command") }}

Supported platforms

Manual downloads

{% if files %}
{% for f in files %} {% endfor %}
FileSizeSHA-256
{{ f.name }}{{ '%.1f' % f.size_mb }} MB{{ f.sha256 }}

After downloading, run chmod +x porjay-linux-x86_64 && mv porjay-linux-x86_64 ~/.local/bin/porjay.

{% else %}

No prebuilt files are published yet. Build from source below.

{% endif %}

Build from source

Browse the source at {{ cfg.PUBLIC_BASE_URL | replace("https://", "") }}/{{ cfg.SOURCE_REPO }} or clone it with {{ cli }} clone {{ cfg.PUBLIC_BASE_URL }}/{{ cfg.SOURCE_REPO }} porjay.porjay.

Requires a C compiler, make, zlib, and OpenSSL headers (sudo apt install build-essential zlib1g-dev libssl-dev on Ubuntu, or brew install openssl@3 on macOS).

{{ cmd(["./configure", "make", "cp porjay ~/.local/bin/"], label="Build commands") }}
{% endblock %}