@@ -29,16 +29,33 @@ 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+
3235 - name : Download Codex DMG
3336 run : curl -fL "https://persistent.oaistatic.com/codex-app-prod/Codex.dmg" -o Codex.dmg
3437
38+ - name : Resolve Linux Codex CLI binary path
39+ id : linux_cli
40+ run : |
41+ set -euo pipefail
42+ CLI_BIN="$(find node_modules/@openai -type f -path "*/@openai/codex-linux-*/vendor/*/path/codex" | head -n 1)"
43+ if [[ -z "${CLI_BIN}" ]]; then
44+ echo "Could not locate Linux codex binary under node_modules/@openai." >&2
45+ exit 1
46+ fi
47+ echo "path=${CLI_BIN}" >> "${GITHUB_OUTPUT}"
48+ file "${CLI_BIN}"
49+
3550 - name : Setup app payload for packaging
36- run : SKIP_APP_INSTALL=1 bash scripts/setup.sh ./Codex.dmg
51+ run : CODEX_CLI_SOURCE_PATH="${{ steps.linux_cli.outputs.path }}" SKIP_APP_INSTALL=1 bash scripts/setup.sh ./Codex.dmg
3752
3853 - name : Verify CLI payload extracted
3954 run : |
4055 test -x app_resources/bin/codex
4156 ls -l app_resources/bin/codex
57+ file app_resources/bin/codex
58+ file app_resources/bin/codex | grep -E "ELF"
4259
4360 - name : Build DEB and AppImage
4461 run : npm run build:linux
4764 run : |
4865 test -x dist/linux-unpacked/resources/bin/codex
4966 ls -l dist/linux-unpacked/resources/bin/codex
67+ file dist/linux-unpacked/resources/bin/codex
68+ file dist/linux-unpacked/resources/bin/codex | grep -E "ELF"
5069
5170 - name : Create or update GitHub release
5271 uses : softprops/action-gh-release@v2
0 commit comments