ReflexDocs← Downloads

macOS · Apple Silicon

Make your own
Reflex .pkg.

This creates a standard graphical macOS installer for Apple Silicon Macs. It installs the native reflex command in /usr/local/bin; after that, use reflex run hello.rflx from any terminal.

01

Open the Reflex project

Put the Reflex project folder on your Mac, then open Terminal in that folder.

$cd ~/Downloads/reflex
02

Install Apple’s command-line tools

You only need this once. It provides the macOS package builder.

$xcode-select --install
03

Build the native command

Rust is used here only to build the installer. People who install your finished package do not need Rust or Python.

$cargo build --manifest-path native/Cargo.toml --release -p reflex-cli
04

Create the package

This runs the included Apple Silicon packaging script and writes the installer into the dist folder.

$VERSION=0.1.0-alpha.1 REFLEX_BIN="$PWD/native/target/release/reflex" ./installers/macos/build-pkg.sh
05

Test it like a user would

Open the output folder and double-click the package. Apple’s Installer app handles the graphical installation.

$open dist

After installation

Open a new Terminal window and test the installed command:

reflex --version
reflex run hello.rflx

For your own testing, an unsigned package is fine. Before sharing publicly, use an Apple Developer account to sign and notarize the app and installer.

Copied