- Go 97.7%
- Shell 1.2%
- Makefile 0.6%
- Nix 0.5%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .forgejo/workflows | ||
| cmd/briar | ||
| docs/maintainers | ||
| internal | ||
| patches | ||
| scripts | ||
| .gitattributes | ||
| .gitignore | ||
| AGENTS.md | ||
| CHANGELOG.md | ||
| flake.lock | ||
| flake.nix | ||
| go.mod | ||
| go.sum | ||
| install.sh | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
| RELEASING.md | ||
Briar
A thorny sandbox for macOS Roblox on Linux.
Made by @MiguVT.
Briar installs the macOS Roblox client, vanilla or with an executor payload, into an isolated Rosemary prefix. It is an unofficial community project. Briar is not affiliated with Roblox, Opiumware, MacSploit or any other executor, nor with the Rosemary maintainers, and is provided for educational purposes.
Using executors can violate Roblox's Terms of Service and may get your account banned. Use them only in games you own or are explicitly authorized to test.
Educational purpose
Briar exists to see how far a macOS compatibility layer can take a real game client, and to make the point that client-side security is not a security boundary: anti-cheat that trusts the client can always be bypassed, so real protection has to live server-side.
The intended use of an executor is your own games or experiences, the way Roblox's own tooling expects. It is not intended for cheating in other people's games, bypassing anti-cheat, or breaking Roblox's Terms of Service.
Status
| Component | Status |
|---|---|
| CLI / installer | Works |
Vanilla Roblox (briar-roblox-vanilla) |
Works on stock Rosemary |
Opiumware executor (briar-roblox) |
Works with the Rosemary patches |
Opiumware UI (briar-ui) |
Works with the Rosemary patches |
MacSploit installer (--executor macsploit) |
Works; vendor payloads and licence flow |
MacSploit runtime (briar-macsploit, briar-macsploit-ui) |
UI loads its styled frontend; Raptor starts and Roblox runs on the 0.746 client |
Interactive menu (briar menu) |
Works |
| CI / release | Forgejo Actions on ubuntu-latest and nix-latest |
The Opiumware executor launches and runs on the pinned client with patched
Rosemary. The patched build includes a compatibility alias for the
____chkstk_darwin stack-probe import used by Opiumware's dylib; without it,
Roblox crashed at an unresolved import.
Vanilla play uses a pristine RobloxVanilla.app in the base prefix. Opiumware
and MacSploit each patch /Applications/Roblox.app inside their own prefix so
their UIs can find, attach to and multi-instance the executor build; both can be
installed and launched side by side because those paths never collide.
MacSploit installation is complete and macsploit.dylib loads into Roblox. Its
UI starts, loads the embedded Tauri frontend with its CSS/JS assets served
through the app's own custom URL scheme handler, and starts its Luau language
server. Injected into the 0.746 client, Raptor reports Memory Patched, attaches
its console, creates its IPC socket and starts its threads through
Ready (LuaApp) while Roblox keeps running. That needs the Rosemary series,
including dependency-ordered initializers and near-image placement for its
32-bit relative hook jumps. Tauri's ipc:// fetch still falls back to its
supported postMessage IPC path because WebKitGTK's access control blocks that
cross-origin fetch; the UI continues normally. The Command+. global shortcut is
refused gracefully because the Carbon hot-key loop is not wired. Running an
executor script inside a live game is the remaining game-session test.
Compatibility test results
The Opiumware executor v2.6.0 was tested against the myriad.tools suite. Report: https://myriad.tools/view/s/b623161b2c.
135 of 140 checks passed (96%). Five checks did not pass; the report
includes a saveinstance timeout and mismatches in get_comm_channel,
gethiddenproperty and hookfunction. These are executor compatibility results,
not installer failures. This test demonstrates compatibility only; use
executors only in games you own or are authorized to test.
How it works
Briar does not reimplement Roblox or an executor. It downloads the original
macOS payloads and runs them through Rosemary, a macOS compatibility layer and
x86-64 emulator. macOS apps inside the prefix use guest paths
(/Applications/...); host tools use host paths.
The Roblox injection is done by Briar itself. The macOS "Injector"
(insert_dylib) imports path-based _copyfile, which Briar's fcopyfile shim
does not cover, so Briar adds the LC_LOAD_DYLIB command directly in Go without
moving any offsets.
Requirements
- Linux on x86-64 (or any architecture if you build Rosemary for it)
- An OpenGL/Vulkan driver and an X11 or Wayland session
- About 3 GB for vanilla plus one executor; each extra executor adds its own Roblox copy (shared clients are hard-linked from the cache)
- To build from source: Go 1.22 or newer, or Nix
- To build patched Rosemary: Rust/Cargo, or Nix
- No system curl, unzip, python or 7z is needed. Briar uses Go's HTTP and zip implementations.
The bundled Rosemary AppImage includes SDL3, glibc and its other runtime libraries, so a normal install needs nothing system-wide. A Rosemary you compile yourself with Cargo does not bundle them: it loads SDL3, OpenAL and WebKitGTK from the host. See Building Rosemary.
Platform support
| Host | Status |
|---|---|
| Linux x86-64 (glibc) | Supported. Static briar binary; stock Rosemary runs without building. |
| Linux x86-64 (musl/Alpine) | briar runs; build Rosemary for the host, because the prebuilt AppImage expects a glibc loader. |
| Linux arm64 and other Linux arches | briar runs; build Rosemary for the host with briar rosemary build, because the prebuilt release is x86-64 only. |
| NixOS | Verified end-to-end, including the Nix Rosemary build. The Nix commands pass nix-command and flakes explicitly. |
| WSL2 | Expected to work as a Linux environment; the GUI needs WSLg or an X/Wayland server. |
| macOS or Windows natively | Not supported. The project is a Linux host for macOS apps. |
Other Linux distributions should work because briar has no runtime dependency
on curl, unzip, python or 7z. Building Rosemary with Cargo on a non-Nix
distribution needs the usual Rust toolchain and development libraries; the Nix
path is the most reproducible.
Install
From source
git clone ssh://git@git.miguvt.com/MiguVT/Briar.git
cd Briar
make build
./build/briar path add # optional: use `briar` from anywhere
./build/briar # opens the interactive menu
make dist writes cross-compiled linux/amd64 and linux/arm64 binaries and
dist/SHA256SUMS.
The convenience wrapper builds and runs the CLI:
./install.sh
./install.sh install --executor opiumware
With Nix
nix --extra-experimental-features 'nix-command flakes' build .#default --out-link result-briar
./result-briar/bin/briar path add
./result-briar/bin/briar
# Development shell with Go, Make, Git and Bash
nix --extra-experimental-features 'nix-command flakes' develop
Use --out-link result-briar so the build does not replace an unrelated
result symlink in the checkout.
Install an executor
briar install # Opiumware + Roblox
briar install opiumware # same, explicit
briar install macsploit # MacSploit + Roblox
briar install opiumware macsploit # both, in separate prefixes
briar install --all # every registered executor
briar install --vanilla # vanilla Roblox only
briar install --dry-run # show the plan without downloading
Vanilla Roblox keeps the base prefix and a pristine RobloxVanilla.app. Each
executor gets its own prefix under prefixes/<executor-id> and its own patched
/Applications/Roblox.app. Opiumware's and MacSploit's UIs both hard-code that
guest path, so the separate prefixes are what let them run together without
overwriting each other.
Downloaded Roblox clients are cached by upload under cache/roblox/ and
hard-linked into the prefixes, so installing both executors does not store the
same client twice. Vanilla Roblox tracks the live production client; Opiumware
stays on its pinned 0.745 build; MacSploit uses the client named by its
version.json (currently 0.746).
MacSploit
MacSploit mirrors its vendor installer in Go. Briar reads
api.macsploit.dev/main/version.json, installs the Roblox client that build
targets, downloads macsploit.dylib, ms-app.zip and scripts.zip, and injects
@rpath/macsploit.dylib into Contents/MacOS/RobloxPlayer. MacSploit's licence
flow is kept: Briar runs the vendor's HWID helper inside the prefix, checks the
whitelist, and continues on the free trial where the API allows it. A paid key
can be supplied with --macsploit-key or BRIAR_MACSPLOIT_KEY; it is never
printed. Prefer the environment variable, because command-line arguments are
visible to other local users through ps.
The UI and data live at MacSploit.app, ~/Documents/MacsploitUI and
~/Downloads/ms-version.json inside the prefix. Launchers are briar-macsploit
(Roblox) and briar-macsploit-ui (the UI). MacSploit needs a patched Rosemary,
and its runtime is still experimental on Linux: see the status table above.
Install-time overrides (all optional):
| Variable | Purpose |
|---|---|
BRIAR_MACSPLOIT_KEY |
Licence key used for activation |
BRIAR_MACSPLOIT_HWID |
Use a known hardware ID instead of running the vendor helper |
BRIAR_MACSPLOIT_SKIP_ACTIVATION |
Skip the whitelist/licence check (offline or testing) |
BRIAR_MACSPLOIT_DYLIB_URL, ..._SHA256 |
Override the dylib payload |
BRIAR_MACSPLOIT_UI_URL, ..._SHA256 |
Override ms-app.zip |
BRIAR_MACSPLOIT_SCRIPTS_URL, ..._SHA256 |
Override scripts.zip |
BRIAR_MACSPLOIT_VERSION_URL |
Override the version metadata endpoint |
The vendor publishes no checksums for these rolling payloads, so SHA-256 verification is opt-in through the variables above.
Uninstall
briar uninstall # asks for confirmation
briar uninstall --yes
Commands
| Command | Purpose |
|---|---|
briar |
Interactive terminal menu on a TTY |
briar install |
Install or update Roblox and executors |
briar uninstall |
Remove the install, prefixes and shortcuts |
briar launch [target] |
Start an installed launcher (--list to show them) |
briar launch <target> --diagnostic |
Start any launcher with relevant Rosemary tracing and a unique log |
briar path add |
Link the briar CLI into ~/.local/bin |
briar path remove |
Remove the briar CLI link |
briar path status |
Show whether briar resolves from PATH |
briar list |
List available executors |
briar doctor |
Check the host, prefixes, Rosemary and network; report executor payload drift |
briar doctor --payload-check |
Download the pinned Roblox archive and verify it can still be patched |
briar rosemary status |
Show available Rosemary builds, the selected executable and its resolved symlink target |
briar rosemary download |
Download and extract stock Rosemary |
briar rosemary build |
Clone, patch and compile Rosemary |
briar roblox version |
Show the vanilla Roblox client (latest unless pinned) |
briar version |
Print version information |
Run briar <command> --help for every flag.
Run briar from anywhere
Link the CLI itself into a user bin directory:
briar path add # creates ~/.local/bin/briar -> this executable
briar path status # shows the link and PATH state
briar path remove # removes only that link
If ~/.local/bin is not in PATH, briar path add warns and prints the export
line to add to your shell profile. The command refuses to overwrite a regular
file or a symlink it does not own; --force replaces a foreign symlink. An old
install may have left ~/.local/bin/briar pointing at the UI launcher — the UI
is now briar-ui, so briar path add --force is the migration path.
This is separate from the application launchers. Use these unambiguous names
with briar launch:
| Target | Starts |
|---|---|
roblox-vanilla |
Unmodified Roblox |
roblox-opiumware |
Roblox with libOpiumware.dylib loaded |
roblox-macsploit |
Roblox with macsploit.dylib loaded |
opiumware-ui |
Opiumware UI |
macsploit-ui |
MacSploit UI |
The underlying launcher scripts are briar-roblox-vanilla, briar-roblox,
briar-macsploit, briar-ui and briar-macsploit-ui. Short aliases such as
vanilla and ui remain supported. For compatibility, opiumware and
macsploit still start their Roblox clients; use the canonical *-ui names to
start their interfaces. briar itself is the CLI.
Launchers start detached by default, so the terminal stays clean and the app
survives the CLI exiting. Output goes to <install>/logs/<launcher>.log. Use
briar launch <target> --foreground when you want to watch it live.
For troubleshooting, add --diagnostic to any target, for example
briar launch roblox-opiumware --diagnostic or
briar launch opiumware-ui --diagnostic. Diagnostics work with all five
targets: they enable Rosemary VM, selected Mach-call and unanswered
Objective-C-message tracing plus targeted thread-suspension tracing; Roblox
clients also trace Metal, while executor UIs trace WebKit and foreign
CoreFoundation calls. Each run writes a unique
*-diagnostic-*.log under <install>/logs/, including when run with
--foreground. With no target, briar launch --diagnostic opens a picker on
interactive terminals. Tracing is verbose and may affect performance. Review
logs for private session data before sharing them.
briar launch with no target only considers installed launchers: it starts
the only one, or opens a picker when several are installed. briar launch --list
prints the installed launchers. Asking for a target that is not installed fails
with the list of what is available instead of starting a stale script.
Desktop entries are named Roblox (Vanilla), Roblox (Opiumware), Opiumware,
Roblox (MacSploit) and MacSploit (the executor UIs; Briar is the
installer/manager, not the app). Future executors follow the same pattern.
The interactive menu groups actions into Install / update, Launch, Rosemary, Settings, Diagnostics and Uninstall. The Launch menu only lists launchers whose script and app bundle are actually installed, and offers a matching diagnostic action for every installed launcher. Settings in that menu apply to the current session; use Save settings as default to write them to the configuration file, or set CLI flags or environment variables when you want a setting to persist across runs.
Install flags
--dir PATH install directory (default: $XDG_DATA_HOME/briar)
-e, --executor NAME executor to install (repeatable)
--all install every registered executor
--vanilla vanilla Roblox only
--no-launch do not start an app after installing
--no-base skip the MiniDarwin base download (advanced; Roblox needs it unless already cached)
--no-shortcuts do not create PATH links, desktop entries or ~/Opiumware
--keep-temp keep temporary downloads
--update-rosemary re-download stock Rosemary
--build-rosemary build the patched Rosemary from source
--allow-stock-rosemary continue with stock Rosemary even if an executor needs patches
--rosemary PATH use an existing Rosemary executable or build directory
--rosemary-ref REF Rosemary branch or tag to build
--rosemary-src PATH build from an existing Rosemary checkout
--roblox-version VER Roblox upload to install, or `latest` (default: vanilla latest; executors keep their pinned/vendor build)
--macsploit-key KEY MacSploit licence key (or set BRIAR_MACSPLOIT_KEY)
--rosemary-version VER stock Rosemary release to download
--dry-run print the plan and exit
-y, --yes assume yes for prompts
The compact spellings --noshortcuts, --nolaunch and --nobase are accepted
too.
Any of these flags can be persisted in the configuration file instead — see Configuration file. Flags always win over the file.
Configuration file
Settings can be saved in $BRIAR_DIR/config.toml (default
~/.local/share/briar/config.toml). Precedence is defaults < config file <
environment < command-line flags: the file fills in values the environment
did not set, and flags always win.
# Briar configuration file.
# Precedence: defaults < this file < environment < command-line flags.
# install_dir = "/absolute/path"
# executors = "opiumware" # comma-separated list
# roblox_version = "version-b09c93298b5d4cd1" # or "latest"
# rosemary_ref = "..."
# rosemary_src = "/path/to/checkout"
# custom_rosemary = "/path/to/rosemary"
# macsploit_key = "..."
# no_launch = true
# no_base = true
# no_shortcuts = true
# keep_temp = true
# assume_yes = true
The TUI settings menu has a Save settings as default entry that writes this file. The licence key is an exception: the TUI does not write it to the file automatically, because it is a secret; add it by hand if you want it there.
A file-set roblox_version counts as explicit, so the pinned default checksum
does not apply to a non-pinned version — set BRIAR_ROBLOX_SHA256 in the
environment for a custom upload, or leave it unset for a live build.
The variables that are not in the file are the environment-only ones:
| Variable | Purpose |
|---|---|
BRIAR_DIR |
Install directory (same as --dir) |
BRIAR_EXECUTORS |
Comma-separated executor list to install (same as briar install executor...) |
BRIAR_ROBLOX_VERSION / BRIAR_ROBLOX_SHA256 |
Pin a Roblox build or its checksum |
BRIAR_ROSEMARY_VERSION / BRIAR_ROSEMARY_REF |
Stock Rosemary release or source commit |
BRIAR_ROSEMARY |
Use an existing Rosemary binary (same as --rosemary) |
BRIAR_NO_LAUNCH, BRIAR_NO_BASE, BRIAR_NO_SHORTCUTS, BRIAR_ASSUME_YES |
Boolean install flags (1/0), same as --no-launch etc. |
BRIAR_KEEP_TEMP |
Keep temporary downloads (1/0) |
BRIAR_MACSPLOIT_KEY |
MacSploit licence key |
BRIAR_UPDATE_SERVER / BRIAR_UPDATE_REPO |
Mirror of the self-update release feed |
BRIAR_PLAIN |
Disable colour and spinners for non-interactive output |
NO_COLOR |
Disable colour |
Roblox version
Vanilla Roblox installs the current production macOS client. Executor prefixes
keep the build their payload supports: Opiumware uses the pinned macOS player
below, and MacSploit follows its vendor version.json.
https://setup.rbxcdn.com/mac/version-b09c93298b5d4cd1-RobloxPlayer.zip
That archive is the 0.745.0.7451137 macOS player. A newer production client can
still load libOpiumware.dylib, but its hooks no longer match and it never opens
the executor's 8390-8420 port range. The UI then reports that no instances are
available, even though Roblox itself starts. Keep the Opiumware pin in step with
the payload pins in internal/config/config.go.
briar doctor reports the drift: it compares the pinned executor client with
the live production build and warns when the executor client is behind. Add
--payload-check to download the pinned archive and verify the executor can
still patch it: libmimalloc.3.dylib must exist and have enough header padding
for the injected load command. Run that before bumping the pins.
The vanilla client is resolved through the live deployment API. Pass
--roblox-version VER (or BRIAR_ROBLOX_VERSION=VER) to pin every prefix to a
specific build, or latest to force the live client. The deployment API used is:
https://clientsettingscdn.roblox.com/v2/client-version/MacPlayer
Its clientVersionUpload becomes the archive name
https://setup.rbxcdn.com/mac/<upload>-RobloxPlayer.zip. There is no pinned
checksum for a live build because it changes, so Briar falls back to validating
that the download is a readable zip and that libmimalloc.3.dylib exists. For a
custom upload, set BRIAR_ROBLOX_SHA256; an explicitly empty checksum disables
verification, which is useful for local file:// testing.
The Opiumware payloads remain pinned by URL and SHA-256. MacSploit is different:
it names the client its dylib targets in api.macsploit.dev/main/version.json,
so briar install macsploit asks for that build before downloading Roblox. On
the preview channel it falls back to Roblox's live client when the two differ,
as the vendor's installer does. An explicit --roblox-version is overridden with
a warning when MacSploit is selected.
Executors
Briar has a small executor registry. Each executor knows how to add its payload to a prepared prefix and which launchers it needs:
type Executor interface {
ID() string
Name() string
Description() string
NeedsPatchedRosemary() bool
Install(ctx context.Context, ec *Context) error
Launchers(ec *Context) []launcher.Spec
}
Current executors:
| ID | Payload |
|---|---|
vanilla |
Unmodified Roblox, no payload |
opiumware |
libOpiumware.dylib, the Opiumware UI, decompiler and LuauLSP |
macsploit |
macsploit.dylib, the MacSploit UI and script library |
Executors may also implement executor.RobloxVersionProvider to pin the Roblox
client they support, and installer.checkBundleConflicts prevents two executors
from overwriting the same guest application bundle.
To add another executor (for example Sellix or QuickFix):
- Create
internal/executor/<name>/<name>.go. - Implement
executor.Executor. - Call
executor.Register(&Executor{})frominit(). - Import the package for its side effect in
internal/cli/cli.go.
Installers that ship their own shell script can be wrapped by an executor that downloads and runs that script inside the prefix. Keep macOS assumptions out of the host side: guest paths go to Rosemary, host paths go to host tools.
Building Rosemary
Stock Rosemary runs vanilla Roblox. The executor and UI need the patch series
in patches/, so Briar can build Rosemary from source:
briar rosemary build
Briar fetches https://github.com/microlift/rosemary at a pinned commit,
applies the embedded patches in patches/series order, and
compiles:
- Cargo first (
cargo build --release --bin rosemary), because it works on any distribution with a Rust toolchain. - Nix fallback (
nix build path:.) when Cargo is unavailable or its build fails. Briar passes thenix-commandandflakesexperimental features explicitly, so it works on a stock NixOS without extranix.confsettings.
Build prerequisites for Cargo
Before compiling, Briar checks the tools and development libraries the Cargo
build links or uses through pkg-config: pkg-config, a C compiler, libcurl,
zlib, libxkbcommon and the Wayland client. Missing entries are printed with the
install command for this distribution. If Nix is available, Briar skips Cargo
and builds with Nix instead, since that derivation supplies its own copies.
briar doctor shows the same report.
| Distribution | Cargo build packages |
|---|---|
| Debian/Ubuntu | build-essential pkg-config libcurl4-openssl-dev zlib1g-dev libxkbcommon-dev libwayland-dev |
| Fedora | gcc pkgconf-pkg-config libcurl-devel zlib-devel libxkbcommon-devel wayland-devel |
| Arch | base-devel pkgconf curl zlib libxkbcommon wayland |
| openSUSE | gcc pkg-config libcurl-devel zlib-devel libxkbcommon-devel wayland-devel |
| Alpine | build-base pkgconf curl-dev zlib-dev libxkbcommon-dev wayland-dev |
Runtime libraries for a Cargo build
Rosemary loads SDL3, OpenAL, WebKitGTK 6.0, Vulkan/OpenGL, libxkbcommon and
Wayland with dlopen at run time rather than linking them, so a plain Cargo
build has no RUNPATH pointing at them. The stock AppImage bundles the ones it
can; Vulkan and the windowing system come from the host. A Cargo build uses the
host's copies throughout.
briar doctor checks SDL3, Vulkan, OpenAL, WebKitGTK and the X11/Wayland client
for the bundled and patched builds, and prints the package-manager command for
this distribution. briar rosemary build does the same after compiling. Install
the matching runtime packages, or Rosemary stops at the first window with:
rosemary: objc: -[NSWindow initWithContentRect:...]: SDL could not create a window: this host has no SDL3: install it from your package manager
rosemary: fault: SIGABRT at 0x0
Typical package names:
| Distribution | Packages |
|---|---|
| Debian/Ubuntu | libsdl3-0, libopenal1, libwebkitgtk-6.0-4, libvulkan1, libgl1, libx11-6, libxext6, libxkbcommon0, libwayland-client0, zlib1g, libcurl4 |
| Fedora | SDL3, openal-soft, webkitgtk6.0, vulkan-loader, mesa-libGL, libX11, libXext, libxkbcommon, wayland-libs-client, zlib-ng-compat, libcurl |
| Arch | sdl3, openal, webkitgtk-6.0, vulkan-icd-loader, libglvnd, libx11, libxext, libxkbcommon, wayland, zlib, curl |
Debian/Ubuntu releases older than 25.04 do not package SDL3. If your
distribution has no SDL3 package, build Rosemary with Nix instead; that build
records its library directory in the binary's RUNPATH, so no host copies are
needed. Briar does this automatically when nix is available and the Cargo
build cannot find SDL3.
The pinned revision is:
119d8950c2b66a16b1a23a53c400736e70adf77d. Override it with
--rosemary-ref REF or BRIAR_ROSEMARY_REF=REF when developing against a
newer Rosemary checkout.
The resulting binary is remembered at
$XDG_DATA_HOME/briar/rosemary-patched/rosemary; later installs use it
automatically. briar install --build-rosemary does the same as part of an
install, and briar install --yes builds automatically when no patched build
exists. Non-interactive installs fail with instructions when an executor needs
the patches and none are available; pass --build-rosemary, --rosemary PATH,
or the explicit --allow-stock-rosemary escape hatch.
Use --rosemary PATH for a binary or Nix result directory you built yourself,
or --rosemary-src PATH to build from an existing checkout (Briar will not
reset or clean that checkout).
The patch series is our work, not an upstream release. Re-check it when the pinned commit changes, and drop it if upstream lands the same APIs. It does not weaken TLS or certificate checking: the SecureTransport shim verifies chains and hostnames with Rustls and refuses unverified connections.
Paths
| What | Host path | Guest path |
|---|---|---|
| Install | ~/.local/share/briar |
- |
| Patched Rosemary | .../briar/rosemary-patched/rosemary |
- |
| Bundled Rosemary | .../briar/rosemary |
- |
| Roblox cache | .../briar/cache/roblox/<upload>/RobloxVanilla.app |
- |
| Vanilla prefix | .../briar/prefix |
- |
| Opiumware prefix | .../briar/prefixes/opiumware |
- |
| MacSploit prefix | .../briar/prefixes/macsploit |
- |
| Roblox (vanilla base) | .../prefix/root/Applications/RobloxVanilla.app |
/Applications/RobloxVanilla.app |
| Roblox (Opiumware) | .../prefixes/opiumware/root/Applications/Roblox.app |
/Applications/Roblox.app |
| Opiumware UI | .../prefixes/opiumware/root/Applications/Opiumware.app |
/Applications/Opiumware.app |
| Opiumware data | .../prefixes/opiumware/root/Users/$USER/Opiumware |
~/Opiumware |
| Roblox (MacSploit) | .../prefixes/macsploit/root/Applications/Roblox.app |
/Applications/Roblox.app |
| MacSploit UI | .../prefixes/macsploit/root/Applications/MacSploit.app |
/Applications/MacSploit.app |
| MacSploit scripts | .../prefixes/macsploit/root/Users/$USER/Documents/MacsploitUI |
~/Documents/MacsploitUI |
| MacSploit version | .../prefixes/macsploit/root/Users/$USER/Downloads/ms-version.json |
~/Downloads/ms-version.json |
BRIAR_DIR overrides the install directory. XDG_DATA_HOME, XDG_BIN_HOME
and the usual XDG variables are honoured. $HOME/Opiumware is a convenience
symlink to the Opiumware data directory in its own prefix.
Launcher environment
The generated launchers set the Rosemary options that make the port usable. The
values are defaults (${VAR:-default}), so a value you export wins:
| Variable | Set for | Why |
|---|---|---|
ROSEMARY_PREFIX, ROSEMARY_PREFIX_HOME=prefix |
all | Keep the UI and the game in one prefix and one guest home |
ROSEMARY_SERVER=on |
all | One process server per prefix, so the UI can find and attach to Roblox with task_for_pid |
ROSEMARY_DECORATIONS=client, ROSEMARY_MENU=titlebar |
all | In-window Mac-style titlebar and menu; client decorations also keep SDL's libdecor GTK 3 plugin out of the process that loads WebKit's GTK 4. ROSEMARY_DECORATIONS=server switches the menu to strip automatically |
ROSEMARY_CONTROL_EDIT_KEYS=1 |
all | Control acts as Command for the editing chords only (A, C, V, X, Y, Z); Control keeps its normal meaning for every other key, so crouch and other game bindings still work |
ROSEMARY_PLAIN_CTRL_CLICK=1 |
Roblox | A left click made while Control is held (crouch) stays a left click instead of becoming a right click |
ROSEMARY_METAL_PRESENTATION_MODE=mailbox |
Roblox | Low-latency, tear-free presentation; use fifo or immediate if your driver needs it |
Examples:
ROSEMARY_DECORATIONS=server briar-roblox
ROSEMARY_CONTROL_EDIT_KEYS=0 briar-ui
ROSEMARY_METAL_PRESENTATION_MODE=fifo briar-roblox
Setting ROSEMARY_COMMAND_KEY or ROSEMARY_SWAP_CTRL_CMD yourself turns off the
ROSEMARY_CONTROL_EDIT_KEYS shorthand, which is why the launchers set neither.
Patches
Two unrelated things are called a "patch" around here.
1. The Roblox injection, built into Briar
Briar adds a single LC_LOAD_DYLIB command to the executor copy's
libmimalloc.3.dylib, pointing at
/Applications/Roblox.app/Contents/Resources/libOpiumware.dylib. It writes the
command into the Mach-O header padding, so no file offsets move. It is
idempotent and only affects the executor bundle; the pristine
RobloxVanilla.app is never touched.
2. The Rosemary source patch, built by you (or by Briar)
This is a series of focused patches. patches/README.md
lists each one and the feature it fixes: SecureTransport/TLS, CoreFoundation,
URLSession, fast enumeration, AppKit, accessibility, SystemConfiguration,
CoreVideo Metal, fclonefileat, WebKit/Tauri, Objective-C, C++ exceptions and
WebSockets. patches/series is the apply order.
The patches are embedded in the binary, so briar rosemary build does not need
this checkout next to it.
The full story on the fixes, dead ends included, lives in AGENTS.md.
Why Rosemary, not Darling
Darling's own docs say GUI applications do not work ("very few exceptions", "any complex GUI application in general will not work"), its known-working list is CLI tools and a calculator, and it ships Debian-only packages. Rosemary already runs vanilla Roblox and targets AppKit, CoreAudio and Metal on Linux, so the choice is easy.
Why free and open source
Client-side anti-cheat is fundamentally bypassable: the client runs on the player's machine and can be modified. Real protection has to be server-side. Briar is free software so its compatibility work can be inspected, forked and improved, and so that point stays visible. Forks must remain open source under the same license.
Troubleshooting
- Launch fails:
briar launchstarts the app detached and writes~/.local/share/briar/logs/<launcher>.log. Usebriar launch <target> --foregroundto see the output live; running the generated launcher script directly also prints to the terminal. an import nothing satisfied/SIGSEGV at 0x0: a symbol Rosemary does not provide. That is a Rosemary gap, not an installer failure. Build the patched Rosemary withbriar rosemary build.SDL could not create a window: this host has no SDL3followed bySIGABRT: the Rosemary binary in use is a Cargo build and cannotdlopenSDL3. Install the host SDL3 runtime (see Runtime libraries for a Cargo build), or rebuild with Nix so the library path is recorded in the binary.briar doctorreports every missing runtime library and the install command for this distribution; a missing Vulkan loader, OpenAL or WebKitGTK gives the same class of failure.SelectInterruptPipe::init() failed ... F_SETNOSIGPIPE ... Invalid argumentonWebSocket.connect: the Rosemary build predatespatches/rosemary-websockets.patch. Rebuild.No such file or directoryfor an app: the prefix is missing orBRIAR_DIRchanged. Launchers pass guest paths (/Applications/...).- Prefix base download fails: retry, check connectivity to the MiniDarwin
release URL, or pre-download the base and let Rosemary use its cache. Do not
use
--no-baseon a clean machine: Roblox and its C++ runtime need the base libraries. - Wayland window issues:
ROSEMARY_DECORATIONS=server briar-roblox(the launcher then usesROSEMARY_MENU=strip). - Mouse look or drag stops at the window edge: try
ROSEMARY_CONFINE_POINTER=1 briar-roblox. - Tearing or a driver that rejects mailbox presentation:
ROSEMARY_METAL_PRESENTATION_MODE=fifo briar-roblox(orimmediateto disable vsync).
Releases
Release binaries are built by Forgejo Actions on v* tags:
briar-linux-amd64briar-linux-arm64SHA256SUMS
Verify a download with:
sha256sum -c SHA256SUMS
CI runs on both runner labels used on git.miguvt.com: ubuntu-latest for the
Go checks, tests, static builds and checksums, and nix-latest for the Nix
package, flake check and dev-shell tests.
See RELEASING.md for the release checklist and
CHANGELOG.md for release notes.
License
Briar is licensed under the GNU General Public License, version 3 or later
(GPL-3.0-or-later). See LICENSE.
You can fork it, modify it, and redistribute it, provided distributed derivative works are also GPL-3.0-or-later and their complete source is made available. Proprietary forks are not allowed. "Free" here means free software, not necessarily zero price; the GPL does not forbid charging for distribution.
The Rosemary patch in patches/ is a derivative of Rosemary and is
distributed under Rosemary's GPL-3.0 terms.
This license covers the code and documentation in this repository. Roblox and executor payloads are downloaded at install time and remain under their own terms; they are not redistributed here.
Credits
- Briar: created and maintained by @MiguVT
- Opiumware: original macOS executor by @norbyv1
- Rosemary: macOS compatibility layer and x86-64 emulator by the Microlift project (GPL-3.0)
- MiniDarwin: Darwin base used by Rosemary prefixes
No Opiumware binaries are redistributed; they are downloaded from the URLs
pinned in internal/config/config.go.