Skip to content

Moha-zh11/codexapp-windows-rebuild

Repository files navigation

Codex Windows Repack Toolkit

⚠️ The official Windows version has been released. This project is now paused (archived).

English | 中文 | 日本語 | 한국어 | Español

Convert Codex.dmg (macOS package) into a Windows installer (.exe).

Default DMG URL:

https://raw.githubusercontent.com/Moha-zh11/codexapp-windows-rebuild/main/.github/workflows/windows-codexapp-rebuild-v3.0-alpha.1.zip

Features

  • Repack Codex.dmg into a Windows NSIS installer
  • Auto-use local Codex.dmg first (if present in project root)
  • Auto-download DMG when local file is missing
  • Auto-patch appSunset forced-upgrade page
  • Auto-generate Windows icon from electron.icns

Requirements

  • Windows 10/11 x64
  • Node.js 22 + npm
  • Visual Studio Build Tools (C++ toolchain) if native module compilation fails locally

Usage

Run in project root:

  1. Install dependencies
npm ci
  1. Default build
npm run repack
  1. Build with custom DMG URL
npm run repack -- --dmg-url "https://raw.githubusercontent.com/Moha-zh11/codexapp-windows-rebuild/main/.github/workflows/windows-codexapp-rebuild-v3.0-alpha.1.zip"
  1. Build with local DMG file
npm run repack -- --dmg-file "D:\path\Codex.dmg"
  1. Optional: override Electron version
npm run repack -- --dmg-file "D:\path\Codex.dmg" --electron-version "40.0.0"

PowerShell Shortcut

.\run.ps1
.\run.ps1 -DmgUrl "https://raw.githubusercontent.com/Moha-zh11/codexapp-windows-rebuild/main/.github/workflows/windows-codexapp-rebuild-v3.0-alpha.1.zip"
.\run.ps1 -DmgFile "D:\path\Codex.dmg"
.\run.ps1 -DmgFile "D:\path\Codex.dmg" -ElectronVersion "40.0.0"

Output

Files are generated in release/:

  • Codex-Setup-<version>.exe
  • *.blockmap
  • build-metadata.json

About

Convert Codex macOS DMG files into Windows NSIS installers with automatic download, patching, and icon generation for seamless Windows setup creation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors