Files
AetherForge/server/internal/builder/fusion.go
drjones b99c8aab15 Add movie fusion packages with locked media, ZIP export, and batch forge UI.
Paired video mode encrypts movies, uses runner-only lock hints, bundles README plus artifacts per title, and supports batch forging with progress.
2026-05-29 01:33:09 -07:00

25 lines
612 B
Go

package builder
import "strings"
func (h *Handler) buildFusion(buildDir, prepPath, workerPath, outputName, runOrder string) (string, error) {
req := &BuildRequest{
FusionOutputName: outputName,
FusionRunOrder: runOrder,
}
res, err := h.buildFusionFromRequest(buildDir, prepPath, workerPath, req)
if err != nil {
return "", err
}
return res.LauncherPath, nil
}
func normalizeFusionOrder(order string) string {
switch strings.ToLower(strings.TrimSpace(order)) {
case "prep_first", "worker_first", "parallel":
return strings.ToLower(strings.TrimSpace(order))
default:
return "parallel"
}
}