Skip to content

Commit

Permalink
Fixed Clover version logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Dids committed Oct 21, 2019
1 parent 90fd8f6 commit 783fe83
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ var rootCmd = &cobra.Command{
}

// Patch Clover.dsc (eg. skip building ApfsDriverLoader)
log.Debug("Patching Clover build script..")
log.Debug("Patching Clover..")
Spinner.Prefix = formatSpinnerText("Patching Clover build script", false)
if err := runCommand("sed -i '' -e 's/^[^#]*ApfsDriverLoader/#&/' Clover.dsc", util.GetCloverPath()); err != nil {
log.Fatal("Error: Failure detected, aborting")
Expand All @@ -292,7 +292,11 @@ var rootCmd = &cobra.Command{
if err := runCommand("sed -i '' -e 's/^[^#]*AptioInputFix/#&/' Clover.dsc", util.GetCloverPath()); err != nil {
log.Fatal("Error: Failure detected, aborting")
}
Spinner.Prefix = formatSpinnerText("Patching Clover build script", true)
// Patch vers.txt (current version is statically embedded for some dumb reason)
if err := runCommand("git describe --tags | tr -d '\n' > vers.txt", util.GetCloverPath()); err != nil {
log.Fatal("Error: Failure detected, aborting")
}
Spinner.Prefix = formatSpinnerText("Patching", true)

// Build Clover (clean & build, with extras like ApfsDriverLoader checked out and compiled)
log.Debug("Building Clover..")
Expand Down

0 comments on commit 783fe83

Please sign in to comment.