feat: add initpage example with build scripts and docs
This commit is contained in:
13
examples/initpage/build.ps1
Normal file
13
examples/initpage/build.ps1
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user