File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,12 +29,15 @@ jobs:
2929 - name : Install npm dependencies
3030 run : npm install
3131
32- - name : Install Linux Codex CLI payload
33- run : npm install --no-save @openai/codex@0.112.0
34-
3532 - name : Download Codex DMG
3633 run : curl -fL "https://persistent.oaistatic.com/codex-app-prod/Codex.dmg" -o Codex.dmg
3734
35+ - name : Setup app payload for packaging
36+ run : SKIP_APP_INSTALL=1 bash scripts/setup.sh ./Codex.dmg
37+
38+ - name : Install Linux Codex CLI payload
39+ run : npm install --no-save @openai/codex@0.112.0
40+
3841 - name : Resolve Linux Codex CLI binary path
3942 id : linux_cli
4043 run : |
6770 echo "path=${CLI_BIN}" >> "${GITHUB_OUTPUT}"
6871 file "${CLI_BIN}"
6972
70- - name : Setup app payload for packaging
71- run : CODEX_CLI_SOURCE_PATH="${{ steps.linux_cli.outputs.path }}" SKIP_APP_INSTALL=1 bash scripts/setup.sh ./Codex.dmg
73+ - name : Replace bundled CLI with Linux binary
74+ run : |
75+ set -euo pipefail
76+ cp -f "${{ steps.linux_cli.outputs.path }}" app_resources/bin/codex
77+ chmod +x app_resources/bin/codex
7278
7379 - name : Verify CLI payload extracted
7480 run : |
You can’t perform that action at this time.
0 commit comments