MCPcopy Create free account
hub / github.com/cactus-compute/cactus / cmd_build_flutter

Function cmd_build_flutter

python/src/cli.py:939–960  ·  view source on GitHub ↗

Build Cactus for Flutter (iOS, macOS, Android).

(args)

Source from the content-addressed store, hash-verified

937
938
939def cmd_build_flutter(args):
940 """Build Cactus for Flutter (iOS, macOS, Android)."""
941 print_color(BLUE, "Building Cactus for Flutter...")
942 print("=" * 32)
943
944 build_script = PROJECT_ROOT / "flutter" / "build.sh"
945 if not build_script.exists():
946 print_color(RED, f"Error: build.sh not found at {build_script}")
947 return 1
948
949 result = run_command(str(build_script), cwd=PROJECT_ROOT / "flutter", check=False)
950 if result.returncode != 0:
951 print_color(RED, "Flutter build failed")
952 return 1
953
954 print_color(GREEN, "Flutter build complete!")
955 print()
956 print("Output:")
957 print(f" flutter/libcactus.so")
958 print(f" flutter/cactus-ios.xcframework")
959 print(f" flutter/cactus-macos.xcframework")
960 return 0
961
962
963def cmd_build_python(args):

Callers 1

cmd_buildFunction · 0.85

Calls 2

print_colorFunction · 0.85
run_commandFunction · 0.85

Tested by

no test coverage detected