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

Side by Side Diff: tools/signing_script.py

Issue 440233005: Added sha256 sums for build outputs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« tools/dartium/upload_steps.py ('K') | « tools/dartium/upload_steps.py ('k') | 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/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 imp 7 import imp
8 import optparse 8 import optparse
9 import os 9 import os
10 import subprocess 10 import subprocess
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 run([GSUTIL, 'cp', bucket, destination]) 125 run([GSUTIL, 'cp', bucket, destination])
126 126
127 def upload_to_new_location(channel, config, source_zip): 127 def upload_to_new_location(channel, config, source_zip):
128 namer = bot_utils.GCSNamer(channel, 128 namer = bot_utils.GCSNamer(channel,
129 bot_utils.ReleaseType.SIGNED) 129 bot_utils.ReleaseType.SIGNED)
130 zipfilename = namer.editor_zipfilename(config['system'], config['bits']) 130 zipfilename = namer.editor_zipfilename(config['system'], config['bits'])
131 bucket = namer.editor_zipfilepath(config['revision'], config['system'], 131 bucket = namer.editor_zipfilepath(config['revision'], config['system'],
132 config['bits']) 132 config['bits'])
133 133
134 if not DRY_RUN: 134 if not DRY_RUN:
135 bot_utils.CreateChecksumFile(source_zip, mangled_filename=zipfilename) 135 bot_utils.CreateMD5ChecksumFile(source_zip, mangled_filename=zipfilename)
136 bot_utils.CreateSha256ChecksumFile(source_zip, mangled_filename=zipfilename)
136 md5_zip_file = source_zip + '.md5sum' 137 md5_zip_file = source_zip + '.md5sum'
138 sha256_zip_file = source_zip + '.sha256'
kevmoo 2014/08/06 01:03:57 should be .sha256sum everywhere
137 139
138 run([GSUTIL, 'cp', source_zip, bucket]) 140 run([GSUTIL, 'cp', source_zip, bucket])
139 run([GSUTIL, 'cp', md5_zip_file, bucket + '.md5sum']) 141 run([GSUTIL, 'cp', md5_zip_file, bucket + '.md5sum'])
142 run([GSUTIL, 'cp', sha256_zip_file, bucket + '.sha256'])
140 run([GSUTIL, 'setacl', 'public-read', bucket]) 143 run([GSUTIL, 'setacl', 'public-read', bucket])
141 run([GSUTIL, 'setacl', 'public-read', bucket + '.md5sum']) 144 run([GSUTIL, 'setacl', 'public-read', bucket + '.md5sum'])
145 run([GSUTIL, 'setacl', 'public-read', bucket + '.sha256'])
kevmoo 2014/08/06 01:03:57 should be .sha256sum everywhere
142 146
143 def upload_msi_installer_to_new_location(channel, config, signed_msi): 147 def upload_msi_installer_to_new_location(channel, config, signed_msi):
144 namer = bot_utils.GCSNamer(channel, bot_utils.ReleaseType.SIGNED) 148 namer = bot_utils.GCSNamer(channel, bot_utils.ReleaseType.SIGNED)
145 bucket = namer.editor_installer_filepath( 149 bucket = namer.editor_installer_filepath(
146 config['revision'], config['system'], config['bits'], 'msi') 150 config['revision'], config['system'], config['bits'], 'msi')
147 run([GSUTIL, 'cp', '-a', 'public-read', signed_msi, bucket]) 151 run([GSUTIL, 'cp', '-a', 'public-read', signed_msi, bucket])
148 152
149 def main(): 153 def main():
150 if sys.platform != 'linux2': 154 if sys.platform != 'linux2':
151 print "This script was only tested on linux. Please run it on linux!" 155 print "This script was only tested on linux. Please run it on linux!"
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 upload_to_new_location(options.channel, config, deploy_zip_file) 275 upload_to_new_location(options.channel, config, deploy_zip_file)
272 276
273 # Upload *.msi installer and set 'public-read ACL 277 # Upload *.msi installer and set 'public-read ACL
274 if system == 'win32': 278 if system == 'win32':
275 postsign_msi = os.path.join( 279 postsign_msi = os.path.join(
276 postsign_dir, locations[system]['msi_scratch'] % config) 280 postsign_dir, locations[system]['msi_scratch'] % config)
277 upload_msi_installer_to_new_location( 281 upload_msi_installer_to_new_location(
278 options.channel, config, postsign_msi) 282 options.channel, config, postsign_msi)
279 283
280 if __name__ == '__main__': 284 if __name__ == '__main__':
281 main() 285 main()
kevmoo 2014/08/06 01:03:57 Not sure if this deleted the trailing new line or
282
OLDNEW
« tools/dartium/upload_steps.py ('K') | « tools/dartium/upload_steps.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698