Building the installer, the scenario checks, and the Mac sandboxes Macron is developed on. Back to the README.
ci/package/build.sh <version> <out-dir> builds Macron-<version>.dmg on a Mac: macron as a universal binary and the Steam Play switch library, in a pkg that installs macron and macron-uninstall to /usr/local/bin and the library to /usr/local/lib/macron. The pkg's postinstall installs Rosetta 2 on an Apple silicon Mac that lacks it (Wine is x86_64, and macron runtime install runs it), then runs as the logged-in user: macron runtime install, then, when Steam is installed, it closes Steam, runs macron steam enable and opens Steam again if it was open. It logs to /Library/Logs/Macron-install.log. When Rosetta or the runtime fails it undoes what it added; when only the Steam step fails, Macron stays installed without Steam Play. In both cases it writes that run to /Users/Shared/Macron install log.txt and opens it in TextEdit, because Installer's failure screen cannot say why. sudo macron-uninstall closes Steam, runs macron uninstall as that user, then deletes the programs and the library. macron uninstall removes only the paths macron creates (runtimes, prefixes, logs, downloads, show-fps, steam-app-backup) and names anything else it finds in the folder. The Release workflow (manual) builds the DMG on a macOS 26 runner and uploads it as an artifact; it publishes a release only on main with its publish input set. The pkg is unsigned: docs/install.md has the Gatekeeper steps, and is the text of the release notes.
When Steam starts a game (macron waitforexitandrun or run), macron starts it through C:\windows\system32\steam.exe, Proton's steam_helper (steam_helper/), after putting the bridge into the prefix: lsteamclient.dll from the runtime's Wine tree is copied to C:\Program Files (x86)\Steam\steamclient.dll (i386) and steamclient64.dll (x86_64), and HKCU\Software\Valve\Steam\ActiveProcess names them, the way Proton's prefix does. A game's steam_api(64).dll then loads that copy, Wine loads it as its builtin lsteamclient.dll, and its Unix side loads the Mac client's steamclient.dylib (from STEAM_COMPAT_CLIENT_INSTALL_PATH, else ~/Library/Application Support/Steam, in Steam.AppBundle/Steam/Contents/MacOS/). lsteamclient/build.sh builds it on a Mac from Valve's source, which lsteamclient/fetch.sh downloads and checks; the Steam bridge build workflow publishes it, and internal/wineruntime installs it into both Wine trees once Manifest.SteamBridge pins a release. A runtime without it starts the game directly, as before. docs/steam-bridge.md has what was built and checked.
A scenario launches a real Windows program through macron on a Mac, waits for its menu, and compares a screenshot with the same program on real Windows. docs/checks.md defines the check and its negative controls.
go build -o ~/.local/bin/macron-check ./cmd/macron-check
macron-check sandbox d3d11-probe # the whole check in a fresh sbx sandbox; evidence lands in evidence/A frame-rate scenario (frameRate in scenario.json, scenarios/d3d9-fps-probe) also reads the frame rate a probe of ours prints and runs it a second time throttled, which must fail. The Frame rate (Windows) workflow measures the probe on a Windows runner.
CI runs every scenario marked "ci": true on each push to main (.github/workflows/scenarios.yml). References come from the Reference workflow on a Windows runner.
Macron is developed on Linux, so sbx gives you a Mac to run commands on. Each sandbox is a GitHub Actions Mac runner (macOS 26, Apple silicon, 5 cores, 14 GB RAM, a logged-in desktop) that you reach over SSH.
Build it once. It needs Go 1.24+, OpenSSH, and a gh login that can start workflows on this repository:
cd tools/sandbox && go build -o ~/.local/bin/sbx ./cmd/sbxid=$(sbx new --json | jq -r 'select(.event == "ready") | .id') # ready in about 20 seconds
sbx exec "$id" -- sw_vers # exits with the command's exit code
sbx exec "$id" 'cd /tmp && ls | wc -l' # one argument is a shell line
sbx scp ./build.tgz "$id":/tmp/build.tgz
sbx scp -r "$id":/tmp/out ./out
sbx ssh "$id" # interactive shell
sbx list # running sandboxes; --all adds stopped ones
sbx info "$id"
sbx extend "$id" --ttl 2h # stop 2 hours from now instead
sbx stop "$id"Things to know:
- A sandbox stops itself 30 minutes after
newunless you pass--ttlor callextend. The timer does not look at activity. No sandbox runs longer than 5 hours 30 minutes. - Stopping erases the machine. There are no snapshots yet.
- At most 5 sandboxes run at once (GitHub's limit for Mac jobs).
- Only the machine that ran
sbx newholds the sandbox's SSH key, in~/.local/state/sbx/. Other machines can list and stop it, not log in. - Every command accepts
--json.sbx's own failures exit 125 with an error code on stderr; wrong usage exits 2. - The tunnel sometimes stalls. Before login
sbxretries by itself. After login it cannot know whether your command ran, soexecgives up after about a minute and exits 255: check the state on the sandbox before running the command again. - The repository is public, so the workflow's inputs, logs and artifacts are too.
sbxputs only public keys there, and the tunnel address encrypted. Never print a secret from a workflow step.