Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
Android-AutoPackage
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
app
Android-AutoPackage
Commits
f8c0e502
Commit
f8c0e502
authored
Jan 30, 2019
by
app.developer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改和优化
parent
6f8b8b7e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
apk_script/auto_upload_pgy.sh
+13
-5
No files found.
apk_script/auto_upload_pgy.sh
View file @
f8c0e502
...
...
@@ -23,8 +23,6 @@ EBIZ_APP_Build_Version=$3
PGY_API_KEY
=
$4
PGY_USER_KEY
=
$5
DD_HOST_URL
=
$6
DD_ICON_URL
=
$7
DD_DOWN_URL
=
$8
CURRENT_DIR
=
$(
cd
"
$(
dirname
"
$0
"
)
"
;
pwd
)
PROJECT_PATH
=
$(
dirname
$(
cd
"
$(
dirname
"
$0
"
)
"
;
pwd
))
...
...
@@ -59,11 +57,21 @@ echo_log ${PGY_password}
# 上传到蒲公英,并接收 Response
PGY_RESPONSE
=
`
curl
-F
"file=@/
${
EBIZ_APK_PATH
}
"
-F
"uKey=
${
PGY_USER_KEY
}
"
-F
"_api_key=
${
PGY_API_KEY
}
"
-F
installType
=
2
-F
password
=
"
${
PGY_password
}
"
-F
"updateDescription=
${
PGY_upload_log
}
"
${
PGY_UPLOAD_SERVER
}
`
RESPONSE
=
${
PGY_RESPONSE
//\n/
}
# (以上调试完成后,再打开以下注释)
RESPONSE_CODE
=
$(
echo
$RESPONSE
| jq
'.code'
)
DD_ICON_URL
=
$(
echo
$RESPONSE
| jq
'.data.appIcon'
)
/120
DD_DOWN_URL
=
$(
echo
$RESPONSE
| jq
'.data.appShortcutUrl'
)
if
[
$RESPONSE_CODE
-eq
0
]
;
then
if
[
$#
-eq
8
]
;
then
python
${
CURRENT_DIR
}
/auto_push_ding_talk.py
${
EBIZ_Version
}
${
EBIZ_APP_Name
}
${
EBIZ_ENV
}
${
DD_ICON_URL
}
${
DD_DOWN_URL
}
${
DD_HOST_URL
}
${
PGY_password
}
else
echo_error
"upload error"
exit
1
fi
# (以上调试完成后,再打开以下注释)
if
[
$#
-eq
6
]
;
then
python
${
CURRENT_DIR
}
/auto_push_ding_talk.py
${
EBIZ_Version
}
${
EBIZ_APP_Name
}
${
EBIZ_ENV
}
${
DD_ICON_URL
//\
"/}
${
DD_DOWN_URL
//\
"/}
${
DD_HOST_URL
}
${
PGY_password
}
fi
...
...
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