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
@@ -36,7 +36,7 @@ class Package
@pkg = "com.phonegap.tmp#{ Time.now.usec }" # ensure a unique pkg
# android sdk discovery ... could be better
@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__).gsub('lib',''))
@framework_dir = File.join(@android_dir, "framework")