ircu2/cleanup-and-push.ps1

63 lines
2.0 KiB
PowerShell

# Script pentru curățare și push
Set-Location D:\pip\underchat-ircd
Write-Host "=== Ștergere fișiere fix și madrid din Git ===" -ForegroundColor Yellow
# Lista fișierelor de șters
$filesToDelete = @(
"fix-eofconfig-ports.sh",
"fix-config.sh",
"fix-and-install-madrid.sh",
"fix-aarch64.sh",
"fix-host-hiding.sh",
"fix-whois-notifications.sh",
"quick-install-madrid.sh",
"install-madrid.sh",
"INSTALL_MADRID.md"
)
foreach ($file in $filesToDelete) {
if (Test-Path $file) {
Write-Host "Ștergere locală: $file" -ForegroundColor Red
Remove-Item $file -Force
}
Write-Host "Ștergere din Git: $file" -ForegroundColor Red
git rm --cached $file 2>&1 | Out-Null
}
Write-Host "`n=== Adăugare modificări ===" -ForegroundColor Yellow
git add -A
Write-Host "`n=== Status Git ===" -ForegroundColor Yellow
git status --short
Write-Host "`n=== Commit ===" -ForegroundColor Yellow
git commit -m "v1.2.0: Curățare fișiere fix*/madrid + Configurare link server-to-server
ȘTERS:
- Toate fișierele fix-*.sh (temporare, integrate în install.sh)
- Toate fișierele *madrid* (scripts specifice)
ADĂUGAT în install.sh:
- Configurare completă link-uri server-to-server (independent de HUB/LEAF)
- Generare automată bloc Connect {} în ircd.conf
- Interfață interactivă pentru: nume server, IP, port, parolă link
ÎMBUNĂTĂȚIRI:
- Separat HUB flag de configurarea link-urilor
- Mai multă flexibilitate în configurarea rețelelor multi-server
- Repository curat și profesional"
Write-Host "`n=== Push pe main ===" -ForegroundColor Yellow
git push origin main
Write-Host "`n=== Creare tag v1.2.0 ===" -ForegroundColor Yellow
git tag -a v1.2.0 -m "Release v1.2.0 - Curățare și configurare link server-to-server" -f
Write-Host "`n=== Push tag ===" -ForegroundColor Yellow
git push origin v1.2.0 -f
Write-Host "`n=== GATA! ===" -ForegroundColor Green
Write-Host "Verifică pe GitLab: https://gitlab.back.ro/underchat/ircu2.git" -ForegroundColor Cyan