diff options
author | herb <herb@google.com> | 2016-08-01 12:26:51 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-01 12:26:51 -0700 |
commit | 35f3e59d1c9900a00f31928b83bf7c2bfe4c7647 (patch) | |
tree | 24e1b64ad8b01e416048b1e967658b6433e33295 /bin/fetch-gn | |
parent | 68f2f7dc4229c3761dd5074a94c35878abcb9a36 (diff) |
Pick the right download tool for windows.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2197423002
Review-Url: https://codereview.chromium.org/2197423002
Diffstat (limited to 'bin/fetch-gn')
-rwxr-xr-x | bin/fetch-gn | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/fetch-gn b/bin/fetch-gn index f2d3c42960..fc2c82a089 100755 --- a/bin/fetch-gn +++ b/bin/fetch-gn @@ -19,6 +19,11 @@ def gn_path(): return 'buildtools/mac/gn' return 'buildtools/win/gn.exe' -quiet('download_from_google_storage', +def download_tool(): + if 'linux' in sys.platform or 'darwin' in sys.platform: + return 'download_from_google_storage' + return 'download_from_google_storage.bat' + +quiet(download_tool(), '--no_resume --no_auth --bucket chromium-gn', '-s ', gn_path() + '.sha1') |