Skip to content

feat: Add Windows native installation support with install.ps1#4

Open
TachiKuma wants to merge 1 commit intobfly123:mainfrom
TachiKuma:fix/powershell-encoding
Open

feat: Add Windows native installation support with install.ps1#4
TachiKuma wants to merge 1 commit intobfly123:mainfrom
TachiKuma:fix/powershell-encoding

Conversation

@TachiKuma
Copy link
Contributor

Added comprehensive Windows installation script with automated setup, PATH configuration, and skills/commands deployment. Enhanced cca.ps1 with improved hook installation and error handling.

New Features:

  • Windows automated installation script (install.ps1)
    • Support for install/uninstall/help commands
    • Automatic PATH configuration (user-level environment variable)
    • Auto-install 10 skills and 10 commands to ~/.claude/
    • Version injection (git/env/GitHub API fallback)
    • Wrapper files creation (cca.bat, cca.cmd)
    • roles.json initialization
    • UTF-8 encoding support for Chinese/emoji output
    • ASCII-only output ([OK], [SKIP]) to avoid encoding issues

Enhanced cca.ps1:

  • Improved hook installation with duplicate detection
  • Enhanced error handling in Write-Installations
  • Better hook script presence detection
  • More informative error messages

Documentation Updates:

  • README.md: Added Windows installation instructions (English)
    • Method 1: Automated installation (recommended)
    • Method 2: Manual installation
    • Uninstallation guide
    • Troubleshooting section
  • README_zh.md: Added Windows installation instructions (Chinese)
    • Complete Chinese installation guide
    • Consistent structure with English version

Bug Fixes:

  • Fixed Unicode character encoding issues (√ → [OK], × → [SKIP])
  • Fixed PowerShell encoding problems in Windows environments
  • Fixed empty installations file handling
  • Fixed hook script copy detection

Installation:
powershell -ExecutionPolicy Bypass -File .\install.ps1 install

Uninstallation:
.\install.ps1 uninstall

Files Changed:

  • New: install.ps1 (458 lines)
  • Modified: README.md (+50, -12)
  • Modified: README_zh.md (+61, -2)
  • Modified: cca.ps1 (+178, -13)

Total: +747 lines, -27 lines

Added comprehensive Windows installation script with automated setup,
PATH configuration, and skills/commands deployment. Enhanced cca.ps1
with improved hook installation and error handling.

New Features:
- Windows automated installation script (install.ps1)
  * Support for install/uninstall/help commands
  * Automatic PATH configuration (user-level environment variable)
  * Auto-install 10 skills and 10 commands to ~/.claude/
  * Version injection (git/env/GitHub API fallback)
  * Wrapper files creation (cca.bat, cca.cmd)
  * roles.json initialization
  * UTF-8 encoding support for Chinese/emoji output
  * ASCII-only output ([OK], [SKIP]) to avoid encoding issues

Enhanced cca.ps1:
- Improved hook installation with duplicate detection
- Enhanced error handling in Write-Installations
- Better hook script presence detection
- More informative error messages

Documentation Updates:
- README.md: Added Windows installation instructions (English)
  * Method 1: Automated installation (recommended)
  * Method 2: Manual installation
  * Uninstallation guide
  * Troubleshooting section
- README_zh.md: Added Windows installation instructions (Chinese)
  * Complete Chinese installation guide
  * Consistent structure with English version

Bug Fixes:
- Fixed Unicode character encoding issues (√ → [OK], × → [SKIP])
- Fixed PowerShell encoding problems in Windows environments
- Fixed empty installations file handling
- Fixed hook script copy detection

Installation:
  powershell -ExecutionPolicy Bypass -File .\install.ps1 install

Uninstallation:
  .\install.ps1 uninstall

Files Changed:
- New: install.ps1 (458 lines)
- Modified: README.md (+50, -12)
- Modified: README_zh.md (+61, -2)
- Modified: cca.ps1 (+178, -13)

Total: +747 lines, -27 lines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant