Commit ca1c69be by sikang

update script

parent 7d4ebba8
......@@ -37,9 +37,9 @@ def move_config(path):
break
if "app_name_str" in line:
addToProperties("app_name="+getResValue(line))
line = getStringRes("app_name_str","\"${app_name}\"")
# if "app_name_str" in line:
# addToProperties("app_name="+getResValue(line))
# line = getStringRes("app_name_str","\"${app_name}\"")
if "LANGUAGE" in line:
if line.startswith("//"):
......@@ -48,14 +48,18 @@ def move_config(path):
addToProperties("language=in")
line = getStringFiled("LANGUAGE","\"${language}\"")
if "'color', 'main_color'" in line:
elif "'color', 'main_color'" in line:
addToProperties("main_color="+getResValue(line))
line = getColorRes("main_color","\"${main_color}\"")
if "'color', 'main_text_color'" in line:
elif "'color', 'main_text_color'" in line:
addToProperties("main_text_color="+getResValue(line))
line = getColorRes("main_text_color","\"${main_text_color}\"")
elif "ZENDESK_URL" in line:
addToProperties("ZENDESK_URL="+getResValue(line))
line = getStringFiled("ZENDESK_URL","\"${ZENDESK_URL}\"")
f_w.write(line)
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment