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
0f4bc330
Commit
0f4bc330
authored
Jul 09, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update script
parent
b6315f89
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
3 deletions
+21
-3
script/print/create_desc.py
+20
-2
script/script_help.sh
+1
-1
No files found.
script/print/create_desc.py
View file @
0f4bc330
...
...
@@ -37,7 +37,7 @@ def create_desc(read_path,write_path):
with
open
(
read_path
,
"r"
)
as
f
:
lines
=
f
.
readlines
()
search_str
=
"-@Example "
+
str
(
random
.
randint
(
0
,
1
8
)
)
+
"-"
search_str
=
"-@Example "
+
str
(
random
.
randint
(
0
,
1
7
)
+
1
)
+
"-"
is_target
=
False
print
(
search_str
)
print
(
sys
.
argv
[
1
])
...
...
@@ -60,4 +60,21 @@ def create_desc(read_path,write_path):
f_w
.
write
(
line
)
create_desc
(
"/Users/connor/StudioProjects/WorkSpace/app_desc.txt"
,
"/Users/connor/Documents/apks/"
+
sys
.
argv
[
5
]
+
"_desc.txt"
)
def
create_config
(
read_path
,
write_path
):
with
open
(
read_path
,
"r"
)
as
f
:
lines
=
f
.
readlines
()
with
open
(
write_path
,
"w"
)
as
f_w
:
for
line
in
lines
:
line
=
line
.
replace
(
"${app_name}"
,
sys
.
argv
[
1
])
\
.
replace
(
"${desc}"
,
sys
.
argv
[
5
]
+
"_desc.txt"
)
\
.
replace
(
"${privacy_url}"
,
sys
.
argv
[
6
])
f_w
.
write
(
line
)
output
=
"/Users/connor/Documents/apks/"
+
sys
.
argv
[
5
]
+
sys
.
argv
[
1
];
if
not
os
.
path
.
exists
(
output
):
os
.
makedirs
(
output
)
create_desc
(
"/Users/connor/StudioProjects/WorkSpace/app_desc.txt"
,
output
+
"/"
+
sys
.
argv
[
5
]
+
"_desc.txt"
)
create_config
(
"/Users/connor/StudioProjects/WorkSpace/config.json"
,
output
+
"/config.json"
)
\ No newline at end of file
script/script_help.sh
View file @
0f4bc330
...
...
@@ -256,7 +256,7 @@ elif (($commod == '26'));then
echo
"对内协议:
${
agreement_url
}
"
echo
"对外协议:
${
home
}
/privacy.html"
cd
print
python create_desc.py
"
${
app_name
}
"
"
${
cus_email
}
"
"
${
hot_line
}
"
"
${
cus_adress
}
"
"
${
corp_id
}
"
python create_desc.py
"
${
app_name
}
"
"
${
cus_email
}
"
"
${
hot_line
}
"
"
${
cus_adress
}
"
"
${
corp_id
}
"
"
${
home
}
/privacy.html"
echo
" "
elif
((
$commod
==
'10000'
))
...
...
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