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

Side by Side Diff: dart/editor/build/build.py

Issue 59623003: editor/build/build.py: Use 32-bit version of dartium/content_shell on macos/windows + bat script fi… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | dart/tools/dartium/download_shellscript_template.bat » ('j') | 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/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 6
7 import glob 7 import glob
8 import gsutil 8 import gsutil
9 import imp 9 import imp
10 import optparse 10 import optparse
(...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 if SYSTEM != 'win': 992 if SYSTEM != 'win':
993 os.chmod(destination, os.stat(destination).st_mode | stat.S_IEXEC) 993 os.chmod(destination, os.stat(destination).st_mode | stat.S_IEXEC)
994 994
995 def add_download_scripts(zipFile, arch): 995 def add_download_scripts(zipFile, arch):
996 shell_ending = { 996 shell_ending = {
997 'win' : '.bat', 997 'win' : '.bat',
998 'linux' : '.sh', 998 'linux' : '.sh',
999 'mac' : '.sh', 999 'mac' : '.sh',
1000 }[SYSTEM] 1000 }[SYSTEM]
1001 1001
1002 # We don't have 64-bit versions of dartium/content_shell for
1003 # macos/windows.
1004 if ['mac', 'win'].contains(SYSTEM):
1005 arch = '32'
1006
1002 namer = bot_utils.GCSNamer(CHANNEL, bot_utils.ReleaseType.RELEASE) 1007 namer = bot_utils.GCSNamer(CHANNEL, bot_utils.ReleaseType.RELEASE)
1003 1008
1004 # We're adding download scripts to the chromium directory. 1009 # We're adding download scripts to the chromium directory.
1005 # The directory tree will look like this after that: 1010 # The directory tree will look like this after that:
1006 # dart/dart-sdk/bin/dart{,.exe} 1011 # dart/dart-sdk/bin/dart{,.exe}
1007 # /chromium/download_contentshell.{sh,bat} 1012 # /chromium/download_contentshell.{sh,bat}
1008 # /chromium/download_dartium_debug.{sh,bat} 1013 # /chromium/download_dartium_debug.{sh,bat}
1009 # /chromium/download_file.dart 1014 # /chromium/download_file.dart
1010 1015
1011 # Add download_file.dart helper utility to the zip file. 1016 # Add download_file.dart helper utility to the zip file.
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
1462 """delete the given file - do not re-throw any exceptions that occur""" 1467 """delete the given file - do not re-throw any exceptions that occur"""
1463 if os.path.exists(f): 1468 if os.path.exists(f):
1464 try: 1469 try:
1465 os.remove(f) 1470 os.remove(f)
1466 except OSError: 1471 except OSError:
1467 print 'error deleting %s' % f 1472 print 'error deleting %s' % f
1468 1473
1469 1474
1470 if __name__ == '__main__': 1475 if __name__ == '__main__':
1471 sys.exit(main()) 1476 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | dart/tools/dartium/download_shellscript_template.bat » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698