mirror of
https://github.com/apache/cordova-android.git
synced 2026-05-11 00:00:05 +08:00
fixing dasherish
This commit is contained in:
+2
-2
@@ -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','')
|
||||
|
||||
Reference in New Issue
Block a user