- Fix return value leakage in install-core.ps1 (suppressed with $null) - Fix ACL -bor compatibility across PowerShell versions - Handle unsigned/lightweight git tags in GPG verification - Skip GPG verification for branch builds (main) - Add explicit GOOS=windows for Go build - Detect Windows syscall build errors with helpful message - Add clone-repos.ps1 as Windows alternative to `core setup` - Update CLAUDE.md with Windows-specific setup instructions Closes #56 workaround documented Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
48 lines
1.1 KiB
PowerShell
48 lines
1.1 KiB
PowerShell
# Clone all Host UK repos (Windows alternative to `core setup`)
|
|
# Run: .\scripts\clone-repos.ps1
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
$repos = @(
|
|
"core-php",
|
|
"core-tenant",
|
|
"core-admin",
|
|
"core-api",
|
|
"core-mcp",
|
|
"core-agentic",
|
|
"core-bio",
|
|
"core-social",
|
|
"core-analytics",
|
|
"core-notify",
|
|
"core-trust",
|
|
"core-support",
|
|
"core-commerce",
|
|
"core-content",
|
|
"core-tools",
|
|
"core-uptelligence",
|
|
"core-developer",
|
|
"core-template"
|
|
)
|
|
|
|
$packagesDir = Join-Path $PSScriptRoot "..\packages"
|
|
|
|
Write-Host "[INFO] Cloning repos to $packagesDir" -ForegroundColor Green
|
|
|
|
foreach ($repo in $repos) {
|
|
$repoPath = Join-Path $packagesDir $repo
|
|
|
|
if (Test-Path $repoPath) {
|
|
Write-Host "[SKIP] $repo already exists" -ForegroundColor Yellow
|
|
continue
|
|
}
|
|
|
|
Write-Host "[CLONE] $repo..." -ForegroundColor Cyan
|
|
gh repo clone "host-uk/$repo" $repoPath
|
|
|
|
if ($LASTEXITCODE -ne 0) {
|
|
Write-Host "[WARN] Failed to clone $repo" -ForegroundColor Yellow
|
|
}
|
|
}
|
|
|
|
Write-Host ""
|
|
Write-Host "[DONE] Repos cloned. Run 'composer install' in each package." -ForegroundColor Green
|