| OLD | NEW | 
|---|
| 1 #!/usr/bin/python | 1 #!/usr/bin/python | 
| 2 | 2 | 
| 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be | 
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. | 
| 6 | 6 | 
| 7 import glob | 7 import glob | 
| 8 import optparse | 8 import optparse | 
| 9 import os | 9 import os | 
| 10 import shutil | 10 import shutil | 
| 11 import sys | 11 import sys | 
| 12 import utils | 12 import utils | 
| 13 | 13 | 
| 14 HOST_OS = utils.guessOS() | 14 HOST_OS = utils.guessOS() | 
| 15 | 15 | 
| 16 if HOST_OS == 'mac': | 16 if HOST_OS == 'mac': | 
| 17   CONTENTSHELL_FILES = ['Content Shell.app', 'ffmpegsumo.so', 'osmesa.so', | 17   CONTENTSHELL_FILES = ['Content Shell.app', 'ffmpegsumo.so', 'osmesa.so', | 
| 18                         'lib'] | 18                         'lib'] | 
| 19   CHROMEDRIVER_FILES = ['chromedriver'] | 19   CHROMEDRIVER_FILES = ['chromedriver'] | 
| 20 elif HOST_OS == 'linux': | 20 elif HOST_OS == 'linux': | 
| 21   CONTENTSHELL_FILES = ['content_shell', 'content_shell.pak', 'fonts.conf', | 21   CONTENTSHELL_FILES = ['content_shell', 'content_shell.pak', 'fonts.conf', | 
| 22                         'libffmpegsumo.so', 'libosmesa.so', 'lib', | 22                         'libffmpegsumo.so', 'libosmesa.so', 'lib', | 
| 23                         'icudtl.dat'] | 23                         'icudtl.dat', 'AHEM____.TTF', 'GardinerModBug.ttf', | 
|  | 24                         'GardinerModCat.ttf'] | 
| 24   CHROMEDRIVER_FILES = ['chromedriver'] | 25   CHROMEDRIVER_FILES = ['chromedriver'] | 
| 25 elif HOST_OS == 'win': | 26 elif HOST_OS == 'win': | 
| 26   # TODO: provide proper list. | 27   # TODO: provide proper list. | 
| 27   CONTENTSHELL_FILES = ['content_shell.exe', 'AHEM____.ttf'] | 28   CONTENTSHELL_FILES = ['content_shell.exe', 'AHEM____.ttf'] | 
| 28   CHROMEDRIVER_FILES = ['chromedriver.exe'] | 29   CHROMEDRIVER_FILES = ['chromedriver.exe'] | 
| 29 else: | 30 else: | 
| 30   raise Exception('Unsupported platform') | 31   raise Exception('Unsupported platform') | 
| 31 | 32 | 
| 32 # Append a file with size of the snapshot. | 33 # Append a file with size of the snapshot. | 
| 33 CONTENTSHELL_FILES.append('snapshot-size.txt') | 34 CONTENTSHELL_FILES.append('snapshot-size.txt') | 
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 180                     action='store', type='string', | 181                     action='store', type='string', | 
| 181                     help='(Release|Debug)') | 182                     help='(Release|Debug)') | 
| 182   (options, args) = parser.parse_args() | 183   (options, args) = parser.parse_args() | 
| 183   Archive(srcpath, options.mode, options.dartium, options.contentshell, | 184   Archive(srcpath, options.mode, options.dartium, options.contentshell, | 
| 184           options.chromedriver) | 185           options.chromedriver) | 
| 185   return 0 | 186   return 0 | 
| 186 | 187 | 
| 187 | 188 | 
| 188 if __name__ == '__main__': | 189 if __name__ == '__main__': | 
| 189   sys.exit(main()) | 190   sys.exit(main()) | 
| OLD | NEW | 
|---|