This guide provides comprehensive instructions for building VibeScript from source. The following steps will walk you through the build process and requirements.
Before building VibeScript, you need to install the required build tools:
Darwin is the primary build system used for compiling VibeScript. It manages the build process and handles cross-platform compilation.
curl -L https://github.com/OUIsolutions/Darwin/releases/download/0.13.0/darwin_linux_bin.out -o darwin.out && chmod +x darwin.out && mv darwin.out /usr/local/bin/darwin curl -L https://github.com/OUIsolutions/Darwin/releases/download/0.13.0/darwin.c -o darwin.c && gcc darwin.c -o darwin.out && sudo mv darwin.out /usr/local/bin/darwin && rm darwin.c For customizing the build process or creating builds for different platforms:
darwin run_blueprint build/ --mode folder amalgamation_buildThis command creates a fresh amalgamation.c file in the release folder.
the amalgamation.c file contains all the VibeScript source code combined into a single file, making it easier to compile and distribute.
darwin run_blueprint build/ --mode folder local_linux_build
```bash
darwin run_blueprint build/ --mode folder local_linux_buildThis creates a vibescript executable optimized for the local Linux environment.
darwin run_blueprint build/ --mode folder amalgamation_build alpine_static_build windowsi32_build windows64_build rpm_static_build debian_static_build --contanizer podmanThis comprehensive build creates the following executables:
release/vibescript64.exe- Windows 64-bit executablerelease/vibescripti32.exe- Windows 32-bit executablerelease/vibescript.out- Linux executablerelease/vibescript.deb- Debian/Ubuntu packagerelease/vibescript.rpm- RedHat/CentOS package
Note: Docker or Podman is required for cross-platform builds.
After completing the build process, verify the installation:
# Verify the build was successful
./vibescript --helpA successful build will display the help documentation.
Build settings can be customized by modifying build/config.lua. Key configuration options include:
PROJECT_NAME = "vibescript" -- Project name
VERSION = "0.0.9" -- Version number
CONTANIZER = "podman" -- Container engine (docker or podman)