Skip to content

Commit 835e656

Browse files
committed
fix(ci): install linux cli after setup and overwrite bundled codex
1 parent 12cfd3c commit 835e656

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff 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: |
@@ -67,8 +70,11 @@ jobs:
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: |

0 commit comments

Comments
 (0)