macos/setup.sh is currently a stub that prints a pointer to the official guide and exits 1. This issue tracks bringing it to parity with the Windows script.
What parity means is specified in CONTRIBUTING.md → The porting contract — same flag surface (--verify-only, --skip-android, --install-root, --precache), same exit codes (0 ok / 1 missing or failed / 2 installed but flutter doctor found toolchain issues), idempotent steps that check before acting, and environment changes written to the shell profile behind a marker-delimited block instead of the Windows registry.
Rough shape of the work
Partial work is welcome — comment here saying which step you're taking so two people don't do the same one. Apple Silicon and Intel notes both useful.
macos/setup.shis currently a stub that prints a pointer to the official guide and exits 1. This issue tracks bringing it to parity with the Windows script.What parity means is specified in CONTRIBUTING.md → The porting contract — same flag surface (
--verify-only,--skip-android,--install-root,--precache), same exit codes (0ok /1missing or failed /2installed butflutter doctorfound toolchain issues), idempotent steps that check before acting, and environment changes written to the shell profile behind a marker-delimited block instead of the Windows registry.Rough shape of the work
JAVA_HOMEcmdline-toolsintocmdline-tools/latest, thenplatform-tools,platforms;android-36,build-tools;36.0.0PATH/ANDROID_HOME/JAVA_HOMEinto the shell profile idempotently (zsh is the macOS default)--verify-onlymode that changes nothingflutter doctorand map its result to the exit-code contractPartial work is welcome — comment here saying which step you're taking so two people don't do the same one. Apple Silicon and Intel notes both useful.