fixed '--skip-patch-update' flag
This commit is contained in:
parent
e99e7bf437
commit
504fc59573
2 changed files with 18 additions and 10 deletions
26
main.go
26
main.go
|
@ -186,6 +186,23 @@ func BuildProcess() {
|
|||
spitfire.RunProject(sourcePath)
|
||||
}
|
||||
fmt.Println("Spitfire build completed successfully.")
|
||||
} else if buildFlag {
|
||||
if prePatch {
|
||||
if err := spitfire.ApplyPatches(sourcePath, patchesRepo, "pre-compile-patches", filepath.Join(sourcePath, "patcher"), skipPatchUpdate); err != nil {
|
||||
log.Fatalf("Error during patch application: %v", err)
|
||||
}
|
||||
}
|
||||
spitfire.Configure(sourcePath)
|
||||
spitfire.Build(sourcePath)
|
||||
if postPatch {
|
||||
if err := spitfire.ApplyPatches(buildDir, patchesRepo, "post-compile-patches", filepath.Join(sourcePath, "patcher"), skipPatchUpdate); err != nil {
|
||||
log.Fatalf("Error during patch application: %v", err)
|
||||
}
|
||||
}
|
||||
if run {
|
||||
spitfire.RunProject(sourcePath)
|
||||
}
|
||||
fmt.Println("Spitfire build completed successfully.")
|
||||
} else if clean {
|
||||
spitfire.CleanBuild(sourcePath)
|
||||
fmt.Println("Cleaned Firefox build.")
|
||||
|
@ -205,18 +222,9 @@ func BuildProcess() {
|
|||
log.Fatalf("Error during patch application: %v", err)
|
||||
}
|
||||
}
|
||||
} else if buildFlag {
|
||||
spitfire.Configure(sourcePath)
|
||||
spitfire.Build(sourcePath)
|
||||
if postPatch {
|
||||
if err := spitfire.ApplyPatches(buildDir, patchesRepo, "post-compile-patches", filepath.Join(sourcePath, "patcher"), skipPatchUpdate); err != nil {
|
||||
log.Fatalf("Error during patch application: %v", err)
|
||||
}
|
||||
}
|
||||
if run {
|
||||
spitfire.RunProject(sourcePath)
|
||||
}
|
||||
fmt.Println("Spitfire build completed successfully.")
|
||||
} else if run {
|
||||
spitfire.RunProject(sourcePath)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue