Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(404)

Side by Side Diff: tools/dart/update.py

Issue 2004943002: Dart: Roll Dart runtime (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright 2015 The Chromium Authors. All rights reserved. 2 # Copyright 2015 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Pulls down the current dart sdk to third_party/dart-sdk/. 6 """Pulls down the current dart sdk to third_party/dart-sdk/.
7 7
8 You can manually force this to run again by removing 8 You can manually force this to run again by removing
9 third_party/dart-sdk/STAMP_FILE, which contains the URL of the SDK that 9 third_party/dart-sdk/STAMP_FILE, which contains the URL of the SDK that
10 was downloaded. Rolling works by updating LINUX_64_SDK to a new URL. 10 was downloaded. Rolling works by updating LINUX_64_SDK to a new URL.
11 """ 11 """
12 12
13 import os 13 import os
14 import shutil 14 import shutil
15 import subprocess 15 import subprocess
16 import sys 16 import sys
17 17
18 # How to roll the dart sdk: Just change this url! We write this to the stamp 18 # How to roll the dart sdk: Just change this url! We write this to the stamp
19 # file after we download, and then check the stamp file for differences. 19 # file after we download, and then check the stamp file for differences.
20 SDK_URL_BASE = ('https://gsdview.appspot.com/dart-archive/channels/dev/raw/' 20 SDK_URL_BASE = ('https://gsdview.appspot.com/dart-archive/channels/dev/raw/'
21 '1.17.0-dev.2.0/sdk/') 21 '1.17.0-dev.4.1/sdk/')
22 22
23 LINUX_64_SDK = 'dartsdk-linux-x64-release.zip' 23 LINUX_64_SDK = 'dartsdk-linux-x64-release.zip'
24 MACOS_64_SDK = 'dartsdk-macos-x64-release.zip' 24 MACOS_64_SDK = 'dartsdk-macos-x64-release.zip'
25 25
26 # Path constants. (All of these should be absolute paths.) 26 # Path constants. (All of these should be absolute paths.)
27 THIS_DIR = os.path.abspath(os.path.dirname(__file__)) 27 THIS_DIR = os.path.abspath(os.path.dirname(__file__))
28 MOJO_DIR = os.path.abspath(os.path.join(THIS_DIR, '..', '..')) 28 MOJO_DIR = os.path.abspath(os.path.join(THIS_DIR, '..', '..'))
29 DART_SDK_DIR = os.path.join(MOJO_DIR, 'third_party', 'dart-sdk') 29 DART_SDK_DIR = os.path.join(MOJO_DIR, 'third_party', 'dart-sdk')
30 STAMP_FILE = os.path.join(DART_SDK_DIR, 'STAMP_FILE') 30 STAMP_FILE = os.path.join(DART_SDK_DIR, 'STAMP_FILE')
31 31
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 unzip_command = ['unzip', '-o', '-q', output_file, '-d', DART_SDK_DIR] 90 unzip_command = ['unzip', '-o', '-q', output_file, '-d', DART_SDK_DIR]
91 if not RunCommand(unzip_command, fail_hard=False): 91 if not RunCommand(unzip_command, fail_hard=False):
92 print "Failed to unzip the dart sdk." 92 print "Failed to unzip the dart sdk."
93 return 1 93 return 1
94 94
95 return 0 95 return 0
96 96
97 if __name__ == '__main__': 97 if __name__ == '__main__':
98 sys.exit(main()) 98 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698