Single-script workflow to rebuild Codex Desktop for Intel macOS from a source Codex.dmg or Codex.app.
./codex-intel.sh
- Running with no arguments prints usage + quick start instructions.
- If Xcode Command Line Tools are missing, the script asks to install them and triggers
xcode-select --install. - If no source app is found, the script tells you to provide
Codex.dmg/Codex.appand shows a download page.
- Put
Codex.dmgin this folder (./Codex.dmg), or pass--source-dmg. - Run:
./codex-intel.sh --dmg
Outputs:
./dist/Codex-Intel.dmg
Output selection:
--dmg: output DMG--app: output rebuilt app--app --dmg: output both- If neither is provided, default is
--dmgonly.
Full flow (build + repackage + dmg):
./codex-intel.sh --source-dmg ./Codex.dmg --dmg
Output app only:
./codex-intel.sh --source-dmg ./Codex.dmg --app
Output both app + dmg:
./codex-intel.sh --source-dmg ./Codex.dmg --app --dmg
Use an installed app instead of dmg:
./codex-intel.sh --source-app /Applications/Codex.app --dmg
Build artifacts only:
./codex-intel.sh --build-only
Repackage only (reuse existing .build):
./codex-intel.sh --repackage-only --source-dmg ./Codex.dmg
DMG only:
./codex-intel.sh --dmg-only --dmg-source-app ./dist/Codex-Intel.app
Defaults:
--window-width 840--window-height 520--app-icon-x 240 --app-icon-y 260--apps-icon-x 650 --apps-icon-y 260
Example:
./codex-intel.sh --dmg-only \ --dmg-source-app ./dist/Codex-Intel.app \ --output-dmg ./dist/Codex-Intel.dmg \ --window-width 820 \ --window-height 500
./codex-intel.sh --help