Launchbay

Install

The daemon and CLI from source, then the desktop app.

Download

Get Launchbay-<version>.dmg from GitHub Releases, open it and drag Launchbay to Applications. It's signed with a Developer ID and notarized by Apple, so it opens with a double-click. On first launch, press Set up the daemon: the app carries its own launchbay CLI and runs launchbay service install from your login shell, so builds get the same PATH, JAVA_HOME, ANDROID_HOME and LAUNCHBAY_* settings as your terminal.

You still need Xcode for iOS builds, and a JDK and the Android SDK for Android ones (see Requirements below). The rest of this page is for building from source.

Requirements

  • macOS, with Xcode for iOS builds and uploads.
  • Rust to build the daemon and CLI.
  • Bun for the desktop app.
  • For Android builds: a JDK (JAVA_HOME) and the Android SDK (ANDROID_HOME).
  • Optional: ccache (brew install ccache) to cache native Android compiles.

The daemon and CLI

git clone https://github.com/vincentvella/launchbay
cd launchbay
cargo install --path .        # launchbay on PATH, at a path that survives `cargo clean`
launchbay service install     # the daemon as a launchd agent: at login, restarted if it dies

launchbay service install captures PATH, JAVA_HOME, ANDROID_HOME, ANDROID_SDK_ROOT and every LAUNCHBAY_* variable from the shell you run it in into ~/Library/LaunchAgents/com.vincentvella.launchbay.daemon.plist. Run it from a shell where your builds work, and rerun it after changing any of those. Arguments after -- go to the daemon:

launchbay service install -- --limit android=2

The log is ~/.launchbay/daemon.log, and launchbay service uninstall removes the agent. To run the daemon in the foreground instead, use launchbay daemon.

The desktop app

cd app && bun install
bun run package               # build/release/Launchbay.app: self-contained, ad hoc signed

Drag Launchbay.app into Applications. The first bun run package compiles an optimized host, which takes a while; later runs reuse it. See Desktop app for what it does.

The app carries its own copy of the launchbay CLI, so it can set up the daemon without cargo install. When no daemon is running it shows Set up the daemon, which runs launchbay service install from your login shell, so the agent gets the same PATH, JAVA_HOME, ANDROID_HOME and LAUNCHBAY_* settings as your terminal. The daemon then runs from inside the app, which is why it should be in Applications first. To use the same CLI in a terminal:

sudo mkdir -p /usr/local/bin
sudo ln -sf /Applications/Launchbay.app/Contents/Resources/bin/launchbay /usr/local/bin/launchbay

Updating

Running jobs outlive the daemon, so installing a new build doesn't cost one in progress:

cargo install --path . && launchctl kickstart -k gui/$(id -u)/com.vincentvella.launchbay.daemon

On this page