mirror of
https://github.com/Walter-Sparrow/lunar-tear.git
synced 2026-07-02 05:43:41 +03:00
Add cross-platform prebuilt release workflow
Build and Push Docker images to Docker Hub / build-and-push (push) Has been cancelled
Build and Push Docker images to Docker Hub / build-and-push (push) Has been cancelled
This commit is contained in:
+22
-13
@@ -74,14 +74,21 @@ func main() {
|
||||
|
||||
fmt.Print(banner)
|
||||
|
||||
sourceMode = isSourceCheckout()
|
||||
|
||||
if !*setupOnly {
|
||||
validateAssets()
|
||||
validateTools()
|
||||
validateProtocIncludes()
|
||||
runProtoc()
|
||||
backupGameDB()
|
||||
runMigrate()
|
||||
downloadDeps()
|
||||
if sourceMode {
|
||||
validateTools()
|
||||
validateProtocIncludes()
|
||||
runProtoc()
|
||||
backupGameDB()
|
||||
runMigrate()
|
||||
downloadDeps()
|
||||
} else {
|
||||
backupGameDB()
|
||||
runMigrateEmbedded()
|
||||
}
|
||||
}
|
||||
|
||||
ip, cfg, firstRun := resolveIP(*preferSaved)
|
||||
@@ -901,13 +908,15 @@ func launchDev(ip string, p ports) {
|
||||
}
|
||||
devBin := filepath.Join("bin", "dev"+ext)
|
||||
|
||||
_ = spinner.New().Title(" Building services...").Action(func() {
|
||||
if err := os.MkdirAll("bin", 0755); err != nil {
|
||||
fmt.Fprintf(os.Stderr, " Failed to create bin/: %v\n", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
runQuiet(exec.Command("go", "build", "-o", devBin, "./cmd/dev"), "build dev")
|
||||
}).Run()
|
||||
if sourceMode {
|
||||
_ = spinner.New().Title(" Building services...").Action(func() {
|
||||
if err := os.MkdirAll("bin", 0755); err != nil {
|
||||
fmt.Fprintf(os.Stderr, " Failed to create bin/: %v\n", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
runQuiet(exec.Command("go", "build", "-o", devBin, "./cmd/dev"), "build dev")
|
||||
}).Run()
|
||||
}
|
||||
|
||||
devArgs := []string{
|
||||
"--grpc.listen", fmt.Sprintf("0.0.0.0:%d", p.GRPC),
|
||||
|
||||
Reference in New Issue
Block a user