Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable users to prepare the flutter engine within docker image without building first. #214

Merged
merged 13 commits into from
Jun 20, 2021
Merged
Prev Previous commit
Next Next commit
FIX: don't check for darling within prepare-engine, simply fail for d…
…arwin releases
  • Loading branch information
cosban committed Jun 20, 2021
commit a8f58dcbebcd40c025a5f938230c76fb6ed0e85d
7 changes: 2 additions & 5 deletions cmd/prepare-engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package cmd

import (
"os"
"os/exec"
"runtime"

"github.com/go-flutter-desktop/hover/internal/build"
Expand Down Expand Up @@ -88,10 +87,8 @@ func validatePrepareEngineParameters(targetOS string) {
os.Exit(1)
}
if targetOS == "darwin" && runtime.GOOS != targetOS && prepareReleaseMode {
cosban marked this conversation as resolved.
Show resolved Hide resolved
if path, err := exec.LookPath("darling"); err != nil || len(path) == 0 {
log.Errorf("To prepare the release flutter engine for darwin on linux, install darling from your package manager or https://www.darlinghq.org/")
os.Exit(1)
}
log.Errorf("It is not possible to prepare the flutter engine in release mode for darwin using docker")
os.Exit(1)
}
}

Expand Down