{"id":46795746,"url":"https://github.com/cuongducle/codex-linux","last_synced_at":"2026-05-27T13:01:58.757Z","repository":{"id":343366389,"uuid":"1167664099","full_name":"cuongducle/codex-linux","owner":"cuongducle","description":"Run Codex Desktop on Linux with a lightweight wrapper, Electron rebuild flow, and local setup script.","archived":false,"fork":false,"pushed_at":"2026-05-27T07:05:36.000Z","size":172581,"stargazers_count":16,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-27T07:10:24.670Z","etag":null,"topics":["app-wrapper","codex","codex-desktop","developer-tools","electron","linux","linux-desktop","shell"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cuongducle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-26T14:47:36.000Z","updated_at":"2026-05-27T07:05:40.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/cuongducle/codex-linux","commit_stats":null,"previous_names":["cuongducle/codex-linux"],"tags_count":48,"template":false,"template_full_name":null,"purl":"pkg:github/cuongducle/codex-linux","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuongducle%2Fcodex-linux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuongducle%2Fcodex-linux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuongducle%2Fcodex-linux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuongducle%2Fcodex-linux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cuongducle","download_url":"https://codeload.github.com/cuongducle/codex-linux/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuongducle%2Fcodex-linux/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33566873,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["app-wrapper","codex","codex-desktop","developer-tools","electron","linux","linux-desktop","shell"],"created_at":"2026-03-10T04:10:50.835Z","updated_at":"2026-05-27T13:01:58.752Z","avatar_url":"https://github.com/cuongducle.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Codex Desktop for Linux\n\nUnofficial Linux packaging for Codex Desktop.\n\n## User Installation (Release Only)\n\nEnd users only need files from **GitHub Releases**.\nNo need to clone this repo or install Node.js.\n\nRelease page: https://github.com/cuongducle/codex-linux/releases/latest\n\n## Ubuntu Support\n\n- Supported target: Ubuntu 22.04 and newer\n- Recommended: Ubuntu 24.04 or newer\n- Unsupported: Ubuntu 20.04 and older\n\n### Option 1: Debian / Ubuntu (`.deb`)\n\n1. Go to [Releases](https://github.com/cuongducle/codex-linux/releases/latest).\n2. Download the latest `codex-desktop-*.deb` file.\n3. Install:\n\n```bash\nsudo dpkg -i ./codex-desktop-*.deb\n```\n\n### Option 2: Any Distro (`.AppImage`)\n\n1. Go to [Releases](https://github.com/cuongducle/codex-linux/releases/latest).\n2. Download the latest `codex-desktop-*-x86_64.AppImage`.\n3. Run:\n\n```bash\nchmod +x codex-desktop-*-x86_64.AppImage\n./codex-desktop-*-x86_64.AppImage\n```\n\n### Updating\n\n- `.deb`: download and install the newer release file.\n- `.AppImage`: replace the old AppImage with the new release file.\n\n## Maintainer Flow (Build + Publish)\n\n### 1) Build locally\n\n```bash\n# Download upstream DMG\ncurl -fL \"https://persistent.oaistatic.com/codex-app-prod/Codex.dmg\" -o Codex.dmg\n\n# Extract payload + rebuild Linux native modules\nbash scripts/setup.sh ./Codex.dmg\n\n# Build packages\nnpm run build:linux\n# or separately:\n# npm run build:deb\n# npm run build:appimage\n```\n\nOutput artifacts are in `dist/`.\n\n### 1.1) Verify a fresh install\n\nAfter installing a newly built `.deb` or launching an AppImage on a clean machine, run:\n\n```bash\nbash scripts/smoke-verify.sh\n```\n\nThe smoke script verifies that `codex-desktop` resolves to the expected launcher, prints the desktop entry `Exec` lines, checks the Codex CLI path, starts the app with Electron logging enabled, and fails if bootstrap errors such as `app server has not been initialized` appear.\n\nFor packaged installs, the app executable is a wrapper that resolves `CODEX_CLI_PATH`, disables Vulkan by default, prefers X11 by default, and then launches the real Electron binary (`codex-desktop.bin`). Override graphics defaults only when needed:\n\n```bash\nCODEX_USE_X11=0 codex-desktop\nCODEX_DISABLE_VULKAN=0 codex-desktop\nCODEX_GL_BACKEND=desktop codex-desktop\n```\n\n### 2) Publish release\n\nPush a version tag:\n\n```bash\ngit tag v0.1.0\ngit push origin v0.1.0\n```\n\nGitHub Actions will automatically:\n\n- Build `.deb` and `.AppImage`\n- Upload both files to GitHub Releases\n- Generate APT repository metadata (`Packages`, `Release`)\n- Publish APT repo to `gh-pages`\n\n## Daily Auto-Update\n\nWorkflow [`check-upstream.yml`](.github/workflows/check-upstream.yml) runs daily and:\n\n- Sends a `HEAD` request to upstream `Codex.dmg` and checks `ETag` first\n- If `ETag` is unchanged: skip download\n- If `ETag` changed: download `Codex.dmg`, extract Codex app version from `app.asar/package.json`\n- Compares that version with latest git tag (`v*`)\n- If newer: updates `upstream-version.txt`, updates `upstream-etag.txt`, commits, and creates a new tag `v\u003ccodex-version\u003e`\n\nThat new tag triggers the release workflow, which publishes new `.deb`, `.AppImage`, and refreshed APT metadata.\n\n## Required Repository Settings\n\n1. Enable GitHub Pages:\n- Settings -\u003e Pages -\u003e Source: `Deploy from a branch`\n- Branch: `gh-pages` (root)\n\n2. Keep repository public (for public downloads).\n\n3. Add repository secret `RELEASE_PAT` (recommended):\n- Create a Personal Access Token with `repo` + `workflow` scopes.\n- Save it in repo Settings -\u003e Secrets and variables -\u003e Actions -\u003e `RELEASE_PAT`.\n- This is used by daily update workflow to push tags that can trigger downstream release workflow.\n\n## Features\n\n- Packaging targets: **DEB** and **AppImage** only\n- Linux native module rebuild (`better-sqlite3`, `node-pty`)\n- Release CI runs on current Ubuntu runners with `dmg2img` and `7zip`\n- Auto-upload release artifacts (`.deb`, `.AppImage`) to GitHub Releases\n- Optional APT repo publish on release tag\n\n## Repository Structure\n\n- `scripts/setup.sh` - Extract from DMG, rebuild native modules, local launcher setup\n- `scripts/build-packages.sh` - Build DEB/AppImage via electron-builder\n- `scripts/build-apt-repo.sh` - Generate Debian repository metadata\n- `scripts/generate-apt-install-script.sh` - Generate public `install.sh`\n- `.github/workflows/release.yml` - CI build + release + APT publish\n- `electron-builder.yml` - Packaging config\n\n## Notes\n\n- This is an unofficial packaging project.\n- This repository does not redistribute Codex source; it builds from upstream `Codex.dmg`.\n- APT setup currently uses `trusted=yes` (unsigned repository).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuongducle%2Fcodex-linux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcuongducle%2Fcodex-linux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuongducle%2Fcodex-linux/lists"}