This guide explains how to distribute, deploy, and manage Prizm across different platforms.
All pre-compiled binaries are in the /dist/ directory:
dist/
├── linux-x64/ # Linux 64-bit
│ └── prizm # Linux executable
├── macos-x64/ # macOS Intel 64-bit
│ └── prizm # macOS executable
├── macos-arm64/ # macOS Apple Silicon (ARM64)
│ └── prizm # macOS ARM executable
└── windows-x64/ # Windows 64-bit
└── prizm.exe # Windows executable
Users run one of the provided installer scripts:
curl -fsSL https://raw.githubusercontent.com/Seigh-sword/Prizm/main/install.sh | bash
irm https://raw.githubusercontent.com/Seigh-sword/Prizm/main/install.bat | iex
Users can manually download and place the binary:
mkdir -p ~/.prizm/bin
cp dist/[platform]/prizm ~/.prizm/bin/
chmod +x ~/.prizm/bin/prizm
export PATH="$HOME/.prizm/bin:$PATH" # Add to PATH permanently in .bashrc or .zshrc
mkdir %USERPROFILE%\.prizm\bin
copy dist\windows-x64\prizm.exe %USERPROFILE%\.prizm\bin\
setx PATH "%USERPROFILE%\.prizm\bin;%PATH%"
# Once published:
brew install prizm-lang
# Once published:
choco install prizm
# Once published:
snap install prizm
# Once available:
sudo apt install prizm
The version.json file manages versioning:
{
"version": "0.1.0",
"releaseDate": "2024-01-15",
"changelog": [
{
"version": "0.1.0",
"changes": ["Initial release", "10 headers", ...]
}
]
}
prizm --version
# Output: Prizm v0.1.0
The binary automatically checks for updates:
prizm --check-updates
Linux & macOS:
~/.prizm/
├── bin/ # Executables
│ └── prizm
├── lib/ # Libraries/DLLs
├── include/ # Header files
└── share/
└── doc/ # Documentation
Windows:
%USERPROFILE%\.prizm\
├── bin\ # Executables
│ └── prizm.exe
├── lib\ # Libraries/DLLs
├── include\ # Header files
└── share\
└── doc\ # Documentation
Move binaries to system paths:
Linux & macOS:
sudo cp ~/.prizm/bin/prizm /usr/local/bin/
Windows (Admin):
copy %USERPROFILE%\.prizm\bin\prizm.exe C:\Program Files\Prizm\bin\
For containerized environments:
FROM ubuntu:24.04
RUN mkdir -p /opt/prizm/bin && \
cd /opt/prizm/bin && \
wget https://github.com/Seigh-sword/Prizm/releases/download/v0.1.0/prizm-linux-x64 && \
chmod +x prizm && \
ln -s /opt/prizm/bin/prizm /usr/local/bin/prizm
WORKDIR /app
CMD ["prizm", "run"]
Usage:
docker build -t prizm-app .
docker run -v $(pwd):/app prizm-app
ls -la dist/[platform]/source ~/.bashrc or source ~/.zshrcname: Release Prizm
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: cargo build --release
- uses: softprops/action-gh-release@v1
with:
files: target/release/prizm*
# Verify binary integrity
sha256sum prizm
# Compare with value in version.json
# Remove from PATH and delete installation directory
rm -rf ~/.prizm/
~/.prizm/ (Linux/macOS) or %USERPROFILE%\.prizm\ (Windows)Distribution is key to Prizm’s success. Thank you for deploying with care!