Skip to content

Instantly share code, notes, and snippets.

@ardera
Last active January 13, 2023 13:33
Show Gist options
  • Save ardera/4d9807e1cb05b4e26be2133668197768 to your computer and use it in GitHub Desktop.
Save ardera/4d9807e1cb05b4e26be2133668197768 to your computer and use it in GitHub Desktop.
Finds the latest working flutter gallery commit for a given flutter SDK. For usage, see comments below.
@ardera
Copy link
Author

ardera commented Jan 13, 2023

Script Usage

USAGE:
  ./scriptname.sh
    - finds the latest flutter gallery commit for the current flutter stable SDK.
  ./scriptname.sh <git refname>
    - finds the latest flutter gallery commit for the given flutter SDK git refname.
  All log messages are output to stderr and only the final working commit hash to stdout, so it's useful for scripting.
  This script uses & does modifications to the global flutter SDK found in $PATH.
EXAMPLE:
  ./scriptname.sh 3.0.5 > working_commit_hash.txt
  ./scriptname.sh
  ./scriptname.sh | wl-copy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment