Add more windows compatibility. run does not actually put the app on the simulator though

This commit is contained in:
Dave Johnson
2010-08-31 13:21:23 -07:00
parent 86a7a0d9e3
commit cf7a4f0fb6
3 changed files with 14 additions and 6 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ class Update
def initialize
@path = FileUtils.pwd
@android_sdk_path = `which android`.gsub('/tools/android','')
@android_sdk_path = Dir.getwd[0,1] != "/" ? `android-sdk-path.bat android.bat`.gsub('\\tools','').gsub('\\', '\\\\\\\\') : `which android`.gsub('/tools/android','')
@android_dir = File.expand_path(File.dirname(__FILE__))
@framework_dir = File.join(@android_dir, "..", "framework")
# puts "updating #{ @path } with phonegap from #{ @android_dir }"