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
163b1393
Commit
163b1393
authored
Mar 27, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update script
parent
3fbedbae
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
3 deletions
+20
-3
script/pkgname_generator.py
+7
-2
script/rename_pkg.sh
+12
-0
script/script_help.sh
+1
-1
No files found.
script/pkgname_generator.py
View file @
163b1393
#!/usr/bin/env python3
import
random
import
string
import
sys
,
os
def
radomStr
():
return
''
.
join
(
random
.
sample
(
'abcdefghijklmnopqrstuvwxyz'
,
random
.
randint
(
4
,
6
)))
return
''
.
join
(
random
.
sample
(
'abcdefghijklmnopqrstuvwxyz'
,
random
.
randint
(
4
,
6
)))
print
(
radomStr
()
+
'.'
+
radomStr
()
+
'.'
+
radomStr
()
+
'.'
+
radomStr
())
appId
=
radomStr
()
+
'.'
+
radomStr
()
+
'.'
+
radomStr
()
+
'.'
+
radomStr
()
print
(
'new appId : '
+
appId
)
os
.
system
(
'./rename_pkg.sh '
+
appId
)
script/rename_pkg.sh
0 → 100755
View file @
163b1393
#!/usr/bin/env bash
cd
../../
.
gradle.properties
v_code
=
$((${
version_code
}
+
1
))
v_name
=
$((${
v_code
}
/
100
))
"."
$((${
v_code
}
%
100
/
10
))
"."
$((${
v_code
}
%
10
))
echo
"appId=
${
1
}
,versionCode=
${
v_code
}
,verionName=
${
v_name
}
"
sed
-i
""
"s#^app_id=.*#app_id=
${
1
}
#g"
gradle.properties
sed
-i
""
"s#^version_code=.*#version_code=
${
v_code
}
#g"
gradle.properties
sed
-i
""
"s#^version_name=.*#version_name=
${
v_name
}
#g"
gradle.properties
\ No newline at end of file
script/script_help.sh
View file @
163b1393
echo
"脚本使用帮助"
echo
"0、
生成随机包名
"
echo
"0、
修改包名、版本号+1
"
echo
"1、编译release版本"
echo
"2、创建新的签名文件"
echo
"3、commit 和 push Base代码"
...
...
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