feat: add initpage example with build scripts and docs

This commit is contained in:
2026-10-23 14:22:09 -03:00
parent e0e2201230
commit 107bd97d4c
4 changed files with 59 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
Write-Host "Compilando InitPage para Linux (amd64)..." -ForegroundColor Cyan
$env:CGO_ENABLED = "0"
$env:GOOS = "linux"
$env:GOARCH = "amd64"
go build -ldflags="-s -w" -o app main.go
if ($LASTEXITCODE -eq 0) {
Write-Host "Sucesso! Binario 'app' gerado para Linux." -ForegroundColor Green
Write-Host "Copie o arquivo 'app' para: /DATA/AppData/mini-paas/apps/initpage/app" -ForegroundColor Yellow
} else {
Write-Host "Erro na compilacao." -ForegroundColor Red
}