Files
browser/scripts/run-dev.sh
T
2026-08-21 23:52:13 -05:00

22 lines
671 B
Bash
Executable File

#!/bin/sh
# Build and run Fox in dev mode.
#
# scripts/run-dev.sh [extra cargo args...]
#
# On macOS the app must run from a .app bundle (CEF needs its framework
# resources, so a bare target/debug binary cannot start). This script
# therefore bundles first, then launches Fox.app with console output visible.
#
# The CEF distribution must be exported once:
# cargo install export-cef-dir --version 151.7.0+151.3.23
# export-cef-dir # installs to ~/.local/share/cef
set -e
cd "$(dirname "$0")/.."
export CEF_PATH="${CEF_PATH:-$HOME/.local/share/cef}"
scripts/bundle.sh "${FOX_PROFILE:-debug}"
exec ./target/bundle/Fox.app/Contents/MacOS/browser "$@"