Skip to content

Port the setup script to Linux #6

Description

@saty-a

linux/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

  • Resolve and install the latest stable Flutter SDK (releases JSON, Linux archive, SHA-256 verified)
  • Install Temurin JDK 17 (Adoptium API), set JAVA_HOME
  • Install Android cmdline-tools into cmdline-tools/latest, then platform-tools, platforms;android-36, build-tools;36.0.0
  • Accept Android SDK licenses non-interactively
  • Write PATH / ANDROID_HOME / JAVA_HOME into the shell profile idempotently (bash and zsh)
  • Decide and document how to handle the distro-package prerequisites Flutter needs (curl, unzip, git, xz-utils, libglu1-mesa) — including the case where the user has no sudo
  • --verify-only mode that changes nothing
  • Run flutter doctor and map its result to the exit-code contract

Partial work is welcome — comment here saying which step and which distro you're taking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededlinuxLinux setup scriptportPorting the setup script to another OS

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions