Reproducible scripts to rebuild the Codex desktop app for Intel macOS (x86_64).
This repo does not distribute a prebuilt app. It automates rebuilding from your local install.
git clone https://github.com/ry2009/codex-intel-mac.git
cd codex-intel-mac
./scripts/quickstart.sh --openThat builds required Intel artifacts, repackages Codex.app, signs it ad-hoc, and writes:
/tmp/Codex-Intel.app
- Builds Intel-native dependencies for Electron 40:
better_sqlite3.nodepty.nodespawn-helper
- Replaces arm64 runtime/helpers/frameworks with Electron x64 equivalents.
- Bundles an Intel
codexCLI binary when auto-detected. - Removes
sparkle.nodeby default (auto-update disabled, app still launches). - Ad-hoc signs the rebuilt app.
- macOS Intel (
x86_64) - Node.js + npm + npx in
PATH - Xcode command line tools installed
- Existing
/Applications/Codex.app(arm64 release) - Network access (for npm dependencies)
End-to-end flow:
./scripts/quickstart.sh --open
Useful options:
./scripts/quickstart.sh \ --source-app /Applications/Codex.app \ --output-app /tmp/Codex-Intel.app \ --workdir /tmp/codex-intel-build \ --open
Build Intel artifacts only:
./scripts/prepare-artifacts.sh --workdir /tmp/codex-intel-build
This writes /tmp/codex-intel-build/artifact-paths.env.
Repackage only:
./scripts/repackage-codex-intel.sh \ --source-app /Applications/Codex.app \ --artifact-dir /tmp/codex-intel-build \ --output-app /tmp/Codex-Intel.app
If no Intel codex CLI is auto-detected, the script proceeds without bundling CLI and prints:
CODEX_CLI_PATH=/absolute/path/to/intel/codex open /tmp/Codex-Intel.app
- If
electron-rebuildfails, run:xcode-select --install
- If app launches but hangs, ensure bundled/override CLI is Intel:
file /path/to/codex
- If Gatekeeper blocks opening:
xattr -dr com.apple.quarantine /tmp/Codex-Intel.app
- This is an unsupported community workaround.
- Auto-update is intentionally disabled unless you supply your own Intel
sparkle.node.