Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ry2009/codex-intel-mac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

1 Commit

Repository files navigation

codex-intel-mac

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.

One-command quickstart

git clone https://github.com/ry2009/codex-intel-mac.git
cd codex-intel-mac
./scripts/quickstart.sh --open

That builds required Intel artifacts, repackages Codex.app, signs it ad-hoc, and writes:

  • /tmp/Codex-Intel.app

What it does

  1. Builds Intel-native dependencies for Electron 40:
    • better_sqlite3.node
    • pty.node
    • spawn-helper
  2. Replaces arm64 runtime/helpers/frameworks with Electron x64 equivalents.
  3. Bundles an Intel codex CLI binary when auto-detected.
  4. Removes sparkle.node by default (auto-update disabled, app still launches).
  5. Ad-hoc signs the rebuilt app.

Prerequisites

  • 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)

Script reference

scripts/quickstart.sh

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

scripts/prepare-artifacts.sh

Build Intel artifacts only:

./scripts/prepare-artifacts.sh --workdir /tmp/codex-intel-build

This writes /tmp/codex-intel-build/artifact-paths.env.

scripts/repackage-codex-intel.sh

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

Troubleshooting

  • If electron-rebuild fails, 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

Notes

  • This is an unsupported community workaround.
  • Auto-update is intentionally disabled unless you supply your own Intel sparkle.node.

About

Reproducible Intel (x86_64) rebuild scripts for Codex desktop on macOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /