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

Side by Side Diff: tools/apps/update_homebrew/bin/update_homebrew.dart

Issue 1179033002: homebrew: Include version information in resources (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library update_homebrew; 5 library update_homebrew;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:convert'; 8 import 'dart:convert';
9 import 'dart:io'; 9 import 'dart:io';
10 10
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 version '$devVersion' 198 version '$devVersion'
199 if MacOS.prefer_64_bit? 199 if MacOS.prefer_64_bit?
200 url '$urlBase/dev/release/${revisions['dev']}/$x64File' 200 url '$urlBase/dev/release/${revisions['dev']}/$x64File'
201 sha256 '${hashes['dev'][x64File]}' 201 sha256 '${hashes['dev'][x64File]}'
202 else 202 else
203 url '$urlBase/dev/release/${revisions['dev']}/$ia32File' 203 url '$urlBase/dev/release/${revisions['dev']}/$ia32File'
204 sha256 '${hashes['dev'][ia32File]}' 204 sha256 '${hashes['dev'][ia32File]}'
205 end 205 end
206 206
207 resource 'content_shell' do 207 resource 'content_shell' do
208 version '$devVersion'
208 url '$urlBase/dev/release/${revisions['dev']}/$contentShellFile' 209 url '$urlBase/dev/release/${revisions['dev']}/$contentShellFile'
209 sha256 '${hashes['dev'][contentShellFile]}' 210 sha256 '${hashes['dev'][contentShellFile]}'
210 end 211 end
211 212
212 resource 'dartium' do 213 resource 'dartium' do
214 version '$devVersion'
213 url '$urlBase/dev/release/${revisions['dev']}/$dartiumFile' 215 url '$urlBase/dev/release/${revisions['dev']}/$dartiumFile'
214 sha256 '${hashes['dev'][dartiumFile]}' 216 sha256 '${hashes['dev'][dartiumFile]}'
215 end 217 end
216 end 218 end
217 219
218 resource 'content_shell' do 220 resource 'content_shell' do
221 version '$stableVersion'
219 url '$urlBase/stable/release/${revisions['stable']}/$contentShellFile' 222 url '$urlBase/stable/release/${revisions['stable']}/$contentShellFile'
220 sha256 '${hashes['stable'][contentShellFile]}' 223 sha256 '${hashes['stable'][contentShellFile]}'
221 end 224 end
222 225
223 resource 'dartium' do 226 resource 'dartium' do
227 version '$stableVersion'
224 url '$urlBase/stable/release/${revisions['stable']}/$dartiumFile' 228 url '$urlBase/stable/release/${revisions['stable']}/$dartiumFile'
225 sha256 '${hashes['stable'][dartiumFile]}' 229 sha256 '${hashes['stable'][dartiumFile]}'
226 end 230 end
227 231
228 def install 232 def install
229 libexec.install Dir['*'] 233 libexec.install Dir['*']
230 bin.install_symlink "#{libexec}/bin/dart" 234 bin.install_symlink "#{libexec}/bin/dart"
231 bin.write_exec_script Dir["#{libexec}/bin/{pub,docgen,dart?*}"] 235 bin.write_exec_script Dir["#{libexec}/bin/{pub,docgen,dart?*}"]
232 236
233 if build.with? 'content-shell' 237 if build.with? 'content-shell'
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 323
320 await runGit(['push']); 324 await runGit(['push']);
321 } finally { 325 } finally {
322 await tempDir.delete(recursive: true); 326 await tempDir.delete(recursive: true);
323 } 327 }
324 }, onError: (error, chain) { 328 }, onError: (error, chain) {
325 print(error); 329 print(error);
326 print(chain.terse); 330 print(chain.terse);
327 }); 331 });
328 } 332 }
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