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

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

Issue 1284633002: Remove dartium formula from homebrew updater. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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 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 d87631a6884c6c931d99111e256f68fee84b69ec..dbf10abc601826d373e91de5ab7f7cd0ff62ab95 100644
--- a/tools/apps/update_homebrew/bin/update_homebrew.dart
+++ b/tools/apps/update_homebrew/bin/update_homebrew.dart
@@ -107,74 +107,11 @@ Future writeHomebrewInfo(String channel, String revision) async {
var stableVersion = await getVersion('stable', revisions['stable']);
- await new File('$repository/dartium.rb').writeAsString(
- createDartiumFormula(revisions, hashes, devVersion, stableVersion),
- flush: true);
await new File('$repository/dart.rb').writeAsString(
createDartFormula(revisions, hashes, devVersion, stableVersion),
flush: true);
}
-String createDartiumFormula(
- Map revisions, Map hashes, String devVersion, String stableVersion) => '''
-require 'formula'
-
-class Dartium < Formula
- homepage "https://www.dartlang.org"
-
- version '$stableVersion'
- url '$urlBase/stable/release/${revisions['stable']}/$dartiumFile'
- sha256 '${hashes['stable'][dartiumFile]}'
-
- devel do
- version '$devVersion'
- url '$urlBase/dev/release/${revisions['dev']}/$dartiumFile'
- sha256 '${hashes['dev'][dartiumFile]}'
-
- resource 'content_shell' do
- url '$urlBase/dev/release/${revisions['dev']}/$contentShellFile'
- sha256 '${hashes['dev'][contentShellFile]}'
- end
- end
-
- resource 'content_shell' do
- url '$urlBase/stable/release/${revisions['stable']}/$contentShellFile'
- sha256 '${hashes['stable'][contentShellFile]}'
- end
-
- def shim_script target
- <<-EOS.undent
- #!/bin/bash
- exec "#{prefix}/#{target}" "\$@"
- EOS
- end
-
- def install
- dartium_binary = 'Chromium.app/Contents/MacOS/Chromium'
- prefix.install Dir['*']
- (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
- DEPRECATED
- In the future, use the `dart` formula using
- `--with-dartium` and/or `--with-content-shell`
-
- To use with IntelliJ, set the Dartium execute home to:
- #{prefix}/Chromium.app
- EOS
- end
-
- test do
- system "#{bin}/dartium"
- end
-end
-''';
-
String createDartFormula(
Map revisions, Map hashes, String devVersion, String stableVersion) => '''
require 'formula'
« 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