Files
AetherForge/server/internal/builder/compile.go

26 lines
662 B
Go

package builder
import "context"
func (h *Handler) buildTagsFor(req *BuildRequest) []string {
var tags []string
if req.ProcessHollowing {
tags = append(tags, "hollow")
}
if req.MeshP2P {
tags = append(tags, "p2p")
}
return tags
}
func (h *Handler) shouldObfuscate(req *BuildRequest) bool {
if req.Obfuscate {
return true
}
return h.policy.DefaultObfuscate
}
func (h *Handler) compileGoProject(ctx context.Context, dir, outputPath, ldflags string, tags []string, obfuscate bool) ([]byte, error) {
return h.compileGoProjectPlatform(ctx, dir, outputPath, ldflags, tags, obfuscate, BuildPlatform{GOOS: "windows", GOARCH: "amd64", Ext: ".exe"})
}