Refactor Windows deployment scripts: unify build and management tools
Major improvements to Windows deployment workflow:
✨ New Unified Scripts:
- Build-ROA2WEB.ps1: Single build script for all components (Frontend, Backend, TelegramBot)
* Supports selective builds: -Component All|Frontend|Backend|TelegramBot
* Replaces Build-Frontend.ps1 and Build-TelegramBot.ps1
* Consistent output structure and better validation
- Manage-ROA2WEB.ps1: Unified service management
* Single entry point for Start, Stop, Restart, Status actions
* Supports -Component All|Backend|TelegramBot
* Health checks and detailed status reporting
* Replaces 6 separate Start/Stop/Restart scripts
🗑️ Removed Deprecated Scripts:
- Start-ROA2WEB.ps1, Stop-ROA2WEB.ps1, Restart-ROA2WEB.ps1
- Start-TelegramBot.ps1, Stop-TelegramBot.ps1, Restart-TelegramBot.ps1
(6 scripts → 1 unified Manage-ROA2WEB.ps1)
⚠️ Marked as DEPRECATED (backward compatibility):
- Build-Frontend.ps1 (use Build-ROA2WEB.ps1 -Component Frontend)
- Build-TelegramBot.ps1 (use Build-ROA2WEB.ps1 -Component TelegramBot)
🧹 Cleanup & Organization:
- Updated .gitignore: deploy-package/ and build artifacts excluded
- Removed deploy-package/ from git tracking (generated artifacts)
- Added DEPLOY_PACKAGE.md with generation instructions
- Created comprehensive scripts/README.md documentation
📝 Documentation Updates:
- Updated CLAUDE.md Windows deployment section
- Added complete script reference guide
- Migration guide from old scripts to new unified system
📊 Impact:
- 18 scripts → 11 scripts (39% reduction)
- ~10,000 LOC → ~6,500 LOC (35% reduction)
- Zero duplicate code
- Cleaner git repository (no build artifacts)
- Unified, consistent API across all operations
Migration:
./Build-Frontend.ps1 → ./Build-ROA2WEB.ps1 -Component Frontend
./Build-TelegramBot.ps1 → ./Build-ROA2WEB.ps1 -Component TelegramBot
./Start-ROA2WEB.ps1 → ./Manage-ROA2WEB.ps1 -Action Start -Component Backend
./Restart-TelegramBot.ps1 → ./Manage-ROA2WEB.ps1 -Action Restart -Component TelegramBot
🤖 Generated with Claude Code (https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>