Skip to content

Contributing

Ali Çömez | Slaweally edited this page Dec 1, 2026 · 1 revision

Contributing

Thank you for helping! Locarust is MIT licensed; everything happens on GitHub.

Translations

Languages are plain JSON files in lang/.

  1. Copy en.json to <code>.json (de.json, es.json, pt-br.json…).
  2. Set "_name" to the language's own name ("Deutsch").
  3. Translate the values only; keep the English keys and placeholders like {name} as they are.
  4. Open a pull request.

A partial file is welcome — missing sentences show in English. After merging, Locarust downloads the language at start: no release needed. Details: lang/README.md.

Adding an app

Apps are listed in apps.json:

{
  "id": "wordpress", "name": "WordPress", "category": "CMS", "version": "7.1.5",
  "url": "https://wordpress.org/wordpress-7.1.5.zip",
  "sha256": "…",
  "root": "wordpress", "installer": "wordpress", "db": true, "admin": "/wp-admin/",
  "php_min": "8.1", "php_max": "8.5",
  "home": "https://wordpress.org",
  "description": { "en": "…", "tr": "…" }
}

Updating a version only needs a new url and sha256. A new kind of app needs an installer branch in src/apps.rs; test with cargo test install_every_app -- --ignored --test-threads=1.

Component versions

catalog.json lists every downloadable service version with its official URL and SHA-256. Always take the checksum from the official source.

Building from source

Requirements: Rust (stable), Windows 10/11, WebView2 (built into Windows 11), Inno Setup 6 for the installer.

cargo run          # dev build; services run from .\runtime
cargo test         # unit tests; keeps lang/en.json in sync with the texts
cargo test -- --ignored --test-threads=1   # end-to-end with real nginx/PHP/MySQL in runtime\bin
powershell -ExecutionPolicy Bypass -File scripts\build-release.ps1   # installer

Put development service versions in runtime\bin\<service>\<version>. Rules for code changes are in AGENTS.md.

Bugs and ideas

Clone this wiki locally