Documentation Index
Fetch the complete documentation index at: https://mintlify.com/21st-dev/1code/llms.txt
Use this file to discover all available pages before exploring further.
Latest Release
Current version: 0.0.72Check GitHub Releases for the complete release history with download links.
Release Process
1Code follows semantic versioning for releases. Here’s how new versions are created and distributed:Version Bumping
Before creating a release, bump the version inpackage.json:
Building a Release
Prerequisites
For macOS notarization:
- Apple Developer account
- Code signing certificate installed
- Notarization profile configured:
Run release script
The release script handles the complete build pipeline:This command:
- Cleans previous builds (
rm -rf release) - Installs dependencies
- Downloads Claude and Codex binaries
- Compiles TypeScript
- Packages for macOS (DMG + ZIP for arm64 and x64)
- Generates update manifests
- Uploads to CDN (if configured)
Staple notarization ticket
After notarization completes, staple the ticket to the DMGs:
Stapling embeds the notarization ticket in the DMG, so users can install without an internet connection.
Build Artifacts
Each release creates the following files:| File | Purpose | Audience |
|---|---|---|
latest-mac.yml | Update manifest for arm64 | Auto-updater |
latest-mac-x64.yml | Update manifest for Intel | Auto-updater |
1Code-{version}-arm64-mac.zip | Auto-update payload (arm64) | Auto-updater |
1Code-{version}-mac.zip | Auto-update payload (Intel) | Auto-updater |
1Code-{version}-arm64.dmg | Manual installer (arm64) | Users |
1Code-{version}.dmg | Manual installer (Intel) | Users |
Auto-Update Flow
Electron’s auto-updater checks for new versions:- App checks
https://cdn.21st.dev/releases/desktop/latest-mac.ymlon:- App startup
- Window regains focus (with 1 min cooldown)
- If manifest version > current version:
- Shows “Update Available” banner
- Downloads ZIP in background
- User clicks “Restart Now”:
- Installs update
- Restarts app
Auto-updates only work for signed builds distributed through 1code.dev. Open source builds don’t include auto-update functionality.
Development Builds
For testing during development:Platform-Specific Builds
Windows Builds
Windows builds create:- NSIS installer (recommended for most users)
- Portable EXE (no installation required)
Linux Builds
Linux builds create:- AppImage (universal, no installation required)
- DEB package (for Debian/Ubuntu)
What Gets Packaged
Source code
Source code
- Compiled TypeScript from
out/directory - Main, preload, and renderer bundles
- All production dependencies from
node_modules/
Native modules
Native modules
These are unpacked from ASAR for direct filesystem access:
better-sqlite3(database)node-pty(terminal)@anthropic-ai/claude-agent-sdk(Claude Code)@zed-industries/codex-acp(Codex)
Agent binaries
Agent binaries
Platform-specific binaries from
resources/bin/:- Claude Code binary (2.1.45)
- Codex binary (0.98.0)
VERSIONfile
Database migrations
Database migrations
SQL migrations from
drizzle/ → resources/migrations/These run automatically on app startup to migrate the database schema.Assets
Assets
- App icons (ICNS for macOS, ICO for Windows, PNG for Linux)
- Entitlements file (macOS code signing)
- DMG background image
Release Checklist
Before releasing a new version:- Bump version in
package.json - Update changelog (this page or
CHANGELOG.md) - Test build locally:
bun run release:dev - Verify agent binaries are downloaded
- Run on clean VM or fresh install simulation
- Test auto-update flow (if applicable)
- Check database migration works on existing databases
- Verify git worktree operations
- Test all major features (chat, terminal, MCP, etc.)
- Run full release:
bun run release - Wait for notarization
- Staple DMGs
- Upload to GitHub Releases
- Upload manifests to CDN (triggers auto-updates)
- Test download and installation
- Announce on Discord
- Update docs if needed
Rollback Procedure
If a release has critical bugs:-
Stop auto-updates immediately:
-
Re-upload previous version manifests:
-
Communicate to users:
- Post in Discord
- Update GitHub release notes
- Provide manual downgrade instructions if needed
Version History
For detailed release notes, changelogs, and download links for all versions, visit:GitHub Releases
View complete version history with release notes and downloadable artifacts
Contributing to Releases
If you’re maintaining a fork or contributing to releases:- Follow the Contributing Guide
- Test builds thoroughly before submitting PRs
- Update version numbers appropriately
- Document breaking changes clearly
- Include migration guides for major versions
The core team handles official releases and distribution. Community members can build and distribute their own forks under the Apache 2.0 license.