Build Cactus for Flutter (iOS, macOS, Android).
(args)
| 937 | |
| 938 | |
| 939 | def 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 | |
| 963 | def cmd_build_python(args): |
no test coverage detected