issue #1733, unify package name to org.cocos2dx.hello* lower case on both android & ios.

This commit is contained in:
walzer 2013-02-20 23:15:48 +08:00
parent 4592e0f775
commit ef697781a7
3 changed files with 6 additions and 19 deletions

View File

@ -63,22 +63,25 @@ def checkParams(context):
# fill in src_project_name and src_package_name according to "language"
if ("cpp" == context["language"]):
context["src_project_name"] = "HelloCpp"
context["src_package_name"] = "org.cocos2dx.hellocpp"
context["src_project_path"] = os.getcwd() + "/../../template/multi-platform-cpp"
print "Creating multi-platform cpp projects haven't been supported in this python script yet"
sys.exit()
elif ("lua" == context["language"]):
context["src_project_name"] = "HelloLua"
context["src_package_name"] = "org.cocos2dx.hellolua"
context["src_project_path"] = os.getcwd() + "/../../template/multi-platform-lua"
print "Creating multi-platform lua projects haven't been supported in this python script yet"
sys.exit()
elif ("javascript" == context["language"]):
context["src_project_name"] = "HelloJavascript"
context["src_project_path"] = os.getcwd() + "/../../template/multi-platform-js"
context["src_package_name"] = "org.cocos2dx.hellojavascript"
# decide the modules to remove
# context["modules_to_remove"] = list(set(context["modules_all"]) - set(context["modules_reserved"]))
#end of checkParams(context) function
# end of checkParams(context) function
# -------------- main --------------

View File

@ -11,15 +11,7 @@ import shutil
def handle_project_files(context):
# determine proj_path
proj_path = context["dst_project_path"] + "/proj.android/"
# determine src_package_name & dst_package_name
if ("cpp" == context["language"]):
context["src_package_name"] = "org.cocos2dx.hellocpp"
elif ("lua" == context["language"]):
context["src_package_name"] = "org.cocos2dx.hellolua"
elif ("javascript" == context["language"]):
context["src_package_name"] = "org.cocos2dx.hellojavascript"
# rename files and folders
src_pkg = context["src_package_name"].split('.')
dst_pkg = context["dst_package_name"].split('.')

View File

@ -11,15 +11,7 @@ import shutil
def handle_project_files(context):
# determine proj_path
proj_path = context["dst_project_path"] + "/proj.ios/"
# determine src_package_name & dst_package_name
if ("cpp" == context["language"]):
context["src_package_name"] = "org.cocos2d-x.HelloCpp"
elif ("lua" == context["language"]):
context["src_package_name"] = "org.cocos2d-x.HelloLua"
elif ("javascript" == context["language"]):
context["src_package_name"] = "org.cocos2d-x.HelloJavascript"
# rename files and folders
os.rename(proj_path + context["src_project_name"] + ".xcodeproj",
proj_path + context["dst_project_name"] + ".xcodeproj" )