Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
0f4ae3ff
Unverified
Commit
0f4ae3ff
authored
Aug 08, 2019
by
Danny Tuppeny
Committed by
GitHub
Aug 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable the progress bar when downloading the Dart SDK via Invoke-WebRequest (#37792)
parent
8e5fb8c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
update_dart_sdk.ps1
bin/internal/update_dart_sdk.ps1
+7
-0
No files found.
bin/internal/update_dart_sdk.ps1
View file @
0f4ae3ff
...
...
@@ -59,7 +59,14 @@ Try {
}
Catch
{
Write-Host
"Downloading the Dart SDK using the BITS service failed, retrying with WebRequest..."
# Invoke-WebRequest is very slow when the progress bar is visible - a 28
# second download can become a 33 minute download. Disable it with
# $ProgressPreference and then restore the original value afterwards.
# https://github.com/flutter/flutter/issues/37789
$OriginalProgressPreference
=
$ProgressPreference
$ProgressPreference
=
'SilentlyContinue'
Invoke-WebRequest
-Uri
$dartSdkUrl
-OutFile
$dartSdkZip
$ProgressPreference
=
$OriginalProgressPreference
}
Write-Host
"Unzipping Dart SDK..."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment