Skip to content

Latest commit

 

History

History
100 lines (72 loc) · 2.96 KB

File metadata and controls

100 lines (72 loc) · 2.96 KB

Windows Build Setup - Complete

✅ What Has Been Done

  1. Repository Cloned: Successfully cloned https://github.com/21st-dev/1code to /root/github-repos/1code

  2. Dependencies Installed:

    • Installed Bun runtime (v1.3.6)
    • Installed all project dependencies via bun install
    • Python 3.12.3 already available
  3. Source Code Built:

    • TypeScript compiled successfully to /root/github-repos/1code/out/
    • All build artifacts ready
  4. Windows Icon Created:

    • Converted build/icon.png to build/icon.ico format required for Windows builds
  5. GitHub Actions Workflow Created:

    • Created .github/workflows/build-windows.yml
    • Configured to build Windows packages automatically on push
    • Will create both NSIS installer and portable ZIP
  6. Build Configuration Updated:

    • Updated package.json to disable code signing (for local builds)
    • Created placeholder resources directory structure

🚀 How to Get Windows Builds

Option 1: GitHub Actions (Recommended - Automatic)

The workflow has been set up and will automatically build Windows packages when:

  • You push to the main branch
  • You manually trigger it via GitHub Actions UI

To trigger manually:

  1. Go to: https://github.com/21st-dev/1code/actions
  2. Click "Build Windows" workflow
  3. Click "Run workflow" button
  4. Download artifacts from the completed run

Artifacts will include:

  • 1Code Setup 0.0.14.exe (NSIS installer)
  • 1Code-0.0.14-win.zip (Portable version)

Option 2: Local Build (Requires Windows)

If you have access to a Windows machine:

cd C:\path\to\1code
bun install
bun run build
bun run package:win

Output will be in release/ directory.

📁 Project Location

All files are in: /root/github-repos/1code/

🔧 Current Status

  • ✅ Source code: Built and ready
  • ✅ Dependencies: Installed
  • ✅ Windows icon: Created
  • ✅ GitHub Actions: Configured
  • ⚠️ Local Windows build: Blocked by Wine compatibility (needs native Windows)

📝 Next Steps

  1. Push the workflow to GitHub (if not already pushed):

    cd /root/github-repos/1code
    git add .github/workflows/build-windows.yml build/icon.ico
    git commit -m "Add Windows build workflow and icon"
    git push origin main
  2. Trigger GitHub Actions build:

  3. Or build on Windows machine:

    • Copy the project to Windows
    • Run bun run package:win

🎯 Files Created/Modified

  • .github/workflows/build-windows.yml - GitHub Actions workflow
  • build/icon.ico - Windows icon file
  • package.json - Updated Windows build config
  • resources/bin/ - Created directory structure
  • BUILD_WINDOWS.md - Build instructions

Note: The GitHub Actions workflow will handle all Windows-specific build requirements automatically, including native module compilation, which cannot be done from Linux/WSL.