Quiet native installer output
This commit is contained in:
@@ -48,6 +48,7 @@ SKIPPED = {"build", ".dart_tool", ".gradle", ".cxx", "local.properties", ".DS_St
|
||||
# generated cannot be mistaken for complete web releases.
|
||||
WEB_CACHE_SCHEMA = "web-release-metadata-v1"
|
||||
WEB_RELEASE_SCHEMA = 1
|
||||
VERBOSE = False
|
||||
|
||||
|
||||
def flutter_version(app=APP):
|
||||
@@ -103,6 +104,7 @@ def web_cache_complete(entry):
|
||||
|
||||
|
||||
def docker(runner, *args, quiet=False):
|
||||
quiet = quiet or not VERBOSE
|
||||
result = runner(["docker", *args], capture_output=quiet, text=True)
|
||||
if result.returncode:
|
||||
detail = (result.stderr or "").strip().splitlines()[-1:] if quiet else []
|
||||
@@ -410,12 +412,15 @@ def main(argv=None):
|
||||
parser.add_argument("--publish", action="store_true", help="Publish desktop archive and update feed to this installation")
|
||||
parser.add_argument("--output", type=Path, help="Desktop archive output directory (default: build cache)")
|
||||
parser.add_argument("--flutter", help="Native Flutter executable for macOS and Android (or PIPELINES_FLUTTER/PATH)")
|
||||
parser.add_argument("--verbose", action="store_true", help="Show full build and tool output")
|
||||
build_mode = parser.add_mutually_exclusive_group()
|
||||
build_mode.add_argument("--native", dest="native", action="store_true", default=None,
|
||||
help="APK: build on this machine with the host Flutter and Android SDK")
|
||||
build_mode.add_argument("--docker", dest="native", action="store_false",
|
||||
help="APK: build in Docker even when a host toolchain exists")
|
||||
args = parser.parse_args(argv)
|
||||
global VERBOSE
|
||||
VERBOSE = args.verbose
|
||||
if args.kind in ("linux", "macos"):
|
||||
spec = importlib.util.spec_from_file_location("pipelines_desktop_build", Path(__file__).with_name("app_desktop_build.py"))
|
||||
desktop = importlib.util.module_from_spec(spec)
|
||||
|
||||
Reference in New Issue
Block a user