From e3481f05b9793ef709d7beceb6852029a4058b34 Mon Sep 17 00:00:00 2001 From: Todor Totev Date: Mon, 28 Sep 2015 16:49:12 +0300 Subject: [PATCH] Depend on node.js 0.12 --- setup/native-script.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setup/native-script.rb b/setup/native-script.rb index 1ba4676776..8abd76e4bb 100644 --- a/setup/native-script.rb +++ b/setup/native-script.rb @@ -27,6 +27,9 @@ `echo "export JAVA_HOME=$(/usr/libexec/java_home)" >> ~/.bash_profile` `echo "export ANDROID_HOME=/usr/local/opt/android-sdk" >> ~/.bash_profile` +puts "Installing node.js 0.12" +system('brew install homebrew/versions/node012') + puts "Creating Homebrew formula for NativeScript." File.open("/usr/local/Library/Formula/native-script.rb", "w:utf-8") do |f| f.write DATA.read @@ -46,8 +49,7 @@ class NativeScript < Formula depends_on :macos => :yosemite depends_on "pkg-config" => :build - depends_on "node" - depends_on "ant" +# depends_on "node" # currently we do not work with latest node, and we manually install 0.12 (see above) depends_on "android-sdk" depends_on "gradle"