Skip to content

Cross-Platform Guide

RayQuiro was engineered from the ground up for strict cross-platform compatibility across Windows, Linux, and macOS.


Never hardcode path separators (\\ or /). Always use path.join:

var config_path = path.join(process.cwd(), "config", "settings.json");

Use os.name() and os.arch() to conditionally handle platform-specific tasks:

if (os.name() == "windows") {
print("Running on Windows");
} else if (os.name() == "linux") {
print("Running on Linux");
} else if (os.name() == "macos") {
print("Running on macOS");
}

You can cross-compile RayQuiro applications from your development machine to target other operating systems using the --target flag:

Terminal window
# Build for Linux (ELF 64-bit):
rqio build app.rq --target linux-x64 -o app_linux
# Build for Windows (.exe):
rqio build app.rq --target win-x64 -o app.exe
# Build for Apple Silicon macOS:
rqio build app.rq --target macos-arm64 -o app_macos

Operating SystemAutomated Installer
Windows`irm rq.raytolfas.cc
Linux`curl -fsSL rq.raytolfas.cc/linux
macOS`curl -fsSL rq.raytolfas.cc/mac