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

Unified Diff: tools/apps/update_homebrew/bin/update_homebrew.dart

Issue 788043004: Add MacOS content_shell download to homebrew formula update app. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Move block to fix unknown error Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/apps/update_homebrew/bin/update_homebrew.dart
diff --git a/tools/apps/update_homebrew/bin/update_homebrew.dart b/tools/apps/update_homebrew/bin/update_homebrew.dart
index 28b82cb486b07156351a18b95f9cfa4f4b849894..17d6e62d0ada7bfc8fe779fffd924dcd19972180 100644
--- a/tools/apps/update_homebrew/bin/update_homebrew.dart
+++ b/tools/apps/update_homebrew/bin/update_homebrew.dart
@@ -19,7 +19,8 @@ final CHANNELS = ['dev', 'stable'];
final SDK_FILES = ['sdk/dartsdk-macos-x64-release.zip',
'sdk/dartsdk-macos-ia32-release.zip' ];
-final DARTIUM_FILES = ['dartium/dartium-macos-ia32-release.zip' ];
+final DARTIUM_FILES = ['dartium/dartium-macos-ia32-release.zip',
+ 'dartium/content_shell-macos-ia32-release.zip'];
final FILES = []..addAll(SDK_FILES)..addAll(DARTIUM_FILES);
@@ -106,6 +107,7 @@ String DartiumFile(Map revisions,
String stableVersion) {
final urlBase = 'https://storage.googleapis.com/dart-archive/channels';
final dartiumFile = 'dartium/dartium-macos-ia32-release.zip';
+ final contentShellFile = 'dartium/content_shell-macos-ia32-release.zip';
return '''
require 'formula'
@@ -121,18 +123,35 @@ class Dartium < Formula
version '$devVersion'
url '$urlBase/dev/release/${revisions['dev']}/$dartiumFile'
sha256 '${hashes['dev'][dartiumFile]}'
+
+ resource 'content_shell' do
+ url '$urlBase/dev/release/${revisions['dev']}/$contentShellFile'
+ version '$devVersion'
+ sha256 '${hashes['dev'][contentShellFile]}'
+ end
+ end
+
+ resource 'content_shell' do
+ url '$urlBase/stable/release/${revisions['stable']}/$contentShellFile'
+ version '$stableVersion'
+ sha256 '${hashes['stable'][contentShellFile]}'
end
def shim_script target
<<-EOS.undent
#!/bin/bash
- open "#{prefix}/#{target}" "\$@"
+ "#{prefix}/#{target}" "\$@"
EOS
end
def install
+ dartium_binary = 'Chromium.app/Contents/MacOS/Chromium'
prefix.install Dir['*']
- (bin+"dartium").write shim_script "Chromium.app"
+ (bin+"dartium").write shim_script dartium_binary
+
+ content_shell_binary = 'Content Shell.app/Contents/MacOS/Content Shell'
+ prefix.install resource('content_shell')
+ (bin+"content_shell").write shim_script content_shell_binary
end
def caveats; <<-EOS.undent
« 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