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
3b35c0c9
Commit
3b35c0c9
authored
Jul 21, 2017
by
Devon Carew
Committed by
GitHub
Jul 21, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
copy the dart sdk directory when we're upgrading it (#11331)
parent
9d901327
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
update_dart_sdk.sh
bin/internal/update_dart_sdk.sh
+13
-0
No files found.
bin/internal/update_dart_sdk.sh
View file @
3b35c0c9
...
...
@@ -17,6 +17,7 @@ set -e
FLUTTER_ROOT
=
"
$(
dirname
"
$(
dirname
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
)
"
)
"
DART_SDK_PATH
=
"
$FLUTTER_ROOT
/bin/cache/dart-sdk"
DART_SDK_PATH_OLD
=
"
$DART_SDK_PATH
.old"
DART_SDK_STAMP_PATH
=
"
$FLUTTER_ROOT
/bin/cache/dart-sdk.stamp"
DART_SDK_VERSION
=
`
cat
"
$FLUTTER_ROOT
/bin/internal/dart-sdk.version"
`
...
...
@@ -48,6 +49,13 @@ if [ ! -f "$DART_SDK_STAMP_PATH" ] || [ "$DART_SDK_VERSION" != `cat "$DART_SDK_S
DART_SDK_URL
=
"https://storage.googleapis.com/dart-archive/channels/
$DART_CHANNEL
/raw/
$DART_SDK_VERSION
/sdk/
$DART_ZIP_NAME
"
# if the sdk path exists, copy it to a temporary location
if
[
-d
"
$DART_SDK_PATH
"
]
;
then
rm
-rf
"
$DART_SDK_PATH_OLD
"
mv
"
$DART_SDK_PATH
"
"
$DART_SDK_PATH_OLD
"
fi
# install the new sdk
rm
-rf
--
"
$DART_SDK_PATH
"
mkdir
-p
--
"
$DART_SDK_PATH
"
DART_SDK_ZIP
=
"
$FLUTTER_ROOT
/bin/cache/dart-sdk.zip"
...
...
@@ -64,4 +72,9 @@ if [ ! -f "$DART_SDK_STAMP_PATH" ] || [ "$DART_SDK_VERSION" != `cat "$DART_SDK_S
}
rm
-f
--
"
$DART_SDK_ZIP
"
echo
"
$DART_SDK_VERSION
"
>
"
$DART_SDK_STAMP_PATH
"
# delete any temporary sdk path
if
[
-d
"
$DART_SDK_PATH_OLD
"
]
;
then
rm
-rf
"
$DART_SDK_PATH_OLD
"
fi
fi
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