fixing dasherish

This commit is contained in:
brianleroux
2010-09-02 16:44:56 -07:00
parent d2e19d8818
commit 9185848cbc
2 changed files with 53 additions and 24 deletions
+2 -2
View File
@@ -30,11 +30,11 @@ class Create
raise 'No index.html found!' unless File.exists? File.join(path, 'index.html')
# setup default vars
@name = path.split("/").last
@name = path.split("/").last.gsub('-','')
@path = File.join(path, '..', "#{ name }-android")
@www = path
@name = path.split('/').last
@pkg = "com.phonegap.#{ name.gsub('-','') }"
@pkg = "com.phonegap.#{ name }"
# 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','')