Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-deploy-utils
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qa-deploy-utils
Commits
8958ee07
Commit
8958ee07
authored
Sep 01, 2017
by
qa_quantgroup
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitabc.xyqb.com/QA/qa-deploy-utils
parents
6e678961
83d747a0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
.DS_Store
.DS_Store
+0
-0
XyqbAndroidBuild.sh
qa_shell_script/app/XyqbAndroidBuild.sh
+8
-3
No files found.
.DS_Store
0 → 100644
View file @
8958ee07
File added
qa_shell_script/app/XyqbAndroidBuild.sh
View file @
8958ee07
...
@@ -13,8 +13,11 @@ build_time=$3
...
@@ -13,8 +13,11 @@ build_time=$3
cd
${
project_path
}
cd
${
project_path
}
function
get_code
()
function
get_code
()
{
{
git checkout ./
git fetch
-p
if
[
-z
${
branch_name
}
]
;
then
if
[
-z
${
branch_name
}
]
;
then
echo
"分支为空,已切换默认分支master"
echo
"分支为空,已切换默认分支master"
git pull
git pull
else
else
echo
"checkout specified branch
${
branch_name
}
"
echo
"checkout specified branch
${
branch_name
}
"
...
@@ -35,7 +38,7 @@ function replace_config()
...
@@ -35,7 +38,7 @@ function replace_config()
echo
"正在替换配置文件,请稍后......"
echo
"正在替换配置文件,请稍后......"
sed
-i
"s/apply plugin
\:
'newlens'/
\/\/
apply plugin
\:
'newlens'/g"
${
BuildGradle_file
}
sed
-i
"s/apply plugin
\:
'newlens'/
\/\/
apply plugin
\:
'newlens'/g"
${
BuildGradle_file
}
sed
-i
"s/artifact = 'com.tencent.mm:SevenZip:1.1.13'/
\/\/
artifact = 'com.tencent.mm:SevenZip:1.1.13'/g"
${
BuildGradle_file
}
sed
-i
"s/artifact = 'com.tencent.mm:SevenZip:1.1.13'/
\/\/
artifact = 'com.tencent.mm:SevenZip:1.1.13'/g"
${
BuildGradle_file
}
sed
-i
"s/
\/\/
path =
\"\/
usr
\/
local
\/
bin
\/
7za
\"
/path =
\"\/
usr
\/
local
\/
p7zip_9.20.1
\/
bin
\/
7za
\"
/g"
${
BuildGradle_file
}
#
sed -i "s/\/\/path = \"\/usr\/local\/bin\/7za\"/path = \"\/usr\/local\/p7zip_9.20.1\/bin\/7za\"/g" ${BuildGradle_file}
else
else
echo
"
${
BuildGradle_file
}
文件不存在,请联系管理人员查看"
echo
"
${
BuildGradle_file
}
文件不存在,请联系管理人员查看"
exit
-1
exit
-1
...
@@ -56,9 +59,11 @@ function build_android()
...
@@ -56,9 +59,11 @@ function build_android()
cd
${
project_path
}
cd
${
project_path
}
pwd
pwd
echo
"开始使用gradle进行编译该版本的代码"
echo
"开始使用gradle进行编译该版本的代码"
gradle resguard
#gradle resguard
echo
"===================
${
GRADLE_HOME
}
"
gradle clean resguardRelease
if
[
$?
=
0
]
;
then
if
[
$?
=
0
]
;
then
echo
"成功构建APK包"
.
echo
"成功构建APK包"
echo
"开始重命名对应的渠道包"
echo
"开始重命名对应的渠道包"
cd
${
BuildApk_path
}
cd
${
BuildApk_path
}
#if [[ ! -z ${product_flavors} ]]; then
#if [[ ! -z ${product_flavors} ]]; then
...
...
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