updated create script to remove dashes

This commit is contained in:
brianleroux
2010-09-01 11:26:57 -07:00
parent c53427d7ec
commit b06d02028a
2 changed files with 129 additions and 39 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ class Create
@path = File.join(path, '..', "#{ name }-android")
@www = path
@name = path.split('/').last
@pkg = "com.phonegap.#{ name }"
@pkg = "com.phonegap.#{ name.gsub('-','') }"
# android sdk discovery ... could be better
@android_sdk_path = Dir.getwd[0,1] != "/" ? `android-sdk-path.bat android.bat`.gsub('\\tools','').gsub('\\', '\\\\\\\\') : `which android`.gsub('/tools/android','')