mirror of
https://github.com/yeslayla/godot-build-tools.git
synced 2025-01-13 04:23:42 +01:00
32 lines
697 B
Go
32 lines
697 B
Go
package main
|
|
|
|
import (
|
|
"github.com/yeslayla/godot-build-tools/internal"
|
|
"github.com/yeslayla/godot-build-tools/logging"
|
|
"github.com/yeslayla/godot-build-tools/steps"
|
|
)
|
|
|
|
func main() {
|
|
logger := logging.NewLogger(&logging.LoggerOptions{})
|
|
|
|
flags := internal.NewBuildFlags(logger)
|
|
flags.Parse()
|
|
|
|
if flags.DebugLog {
|
|
logger = logging.NewLogger(&logging.LoggerOptions{
|
|
Debug: true,
|
|
})
|
|
}
|
|
|
|
buildConfig := internal.LoadBuildConfig(logger)
|
|
|
|
var targetOS internal.TargetOS = internal.CurrentTargetOS()
|
|
|
|
if flags.HasStep("godot-setup") {
|
|
steps.GodotSetup(logger, targetOS, buildConfig.Godot.Version, buildConfig.Godot.Release)
|
|
} else {
|
|
logger.Debugf("Skipping godot-setup step")
|
|
}
|
|
|
|
}
|