Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lib_base
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikang
lib_base
Commits
ca1c69be
Commit
ca1c69be
authored
Apr 21, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update script
parent
7d4ebba8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
script/code/move_buildconfig.py
+9
-5
No files found.
script/code/move_buildconfig.py
View file @
ca1c69be
...
...
@@ -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
:
el
if
"'color', 'main_color'"
in
line
:
addToProperties
(
"main_color="
+
getResValue
(
line
))
line
=
getColorRes
(
"main_color"
,
"
\"
${main_color}
\"
"
)
if
"'color', 'main_text_color'"
in
line
:
el
if
"'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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment