diff options
-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') |