Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
iOS-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
iOS-AutoPackage
Commits
5f7ffa55
Commit
5f7ffa55
authored
Jan 30, 2019
by
app.developer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
fc2bda78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
ipa_script/auto_upload_pgy.sh
+8
-8
No files found.
ipa_script/auto_upload_pgy.sh
View file @
5f7ffa55
...
@@ -20,12 +20,14 @@ NOW=$(date +"%Y_%m_%d_%H_%M_%S")
...
@@ -20,12 +20,14 @@ NOW=$(date +"%Y_%m_%d_%H_%M_%S")
PROJECT_PATH
=
$(
dirname
$(
cd
"
$(
dirname
"
$0
"
)
"
;
pwd
))
PROJECT_PATH
=
$(
dirname
$(
cd
"
$(
dirname
"
$0
"
)
"
;
pwd
))
PSCHEME_PATH
=(
$(
find
$PROJECT_PATH
-name
*
.xcodeproj
)
)
PSCHEME_PATH
=(
$(
find
$PROJECT_PATH
-name
*
.xcodeproj
)
)
PSCHEME_NAME
=
${
PSCHEME_PATH
##*/
}
PSCHEME_NAME
=
${
PSCHEME_PATH
##*/
}
EBIZ_SCHEME
=(
${
PSCHEME_NAME
//./
}
)
EBIZ_SCHEME
=(
${
PSCHEME_NAME
//./
}
)
CURRENT_DIR
=
$(
cd
"
$(
dirname
"
$0
"
)
"
;
pwd
)
EBIZ_IPA_PATH
=
$1
EBIZ_IPA_PATH
=
$1
EBIZ_ENV
=
$2
EBIZ_ENV
=
$2
EBIZ_BUILD_NUMBER
=
$3
EBIZ_BUILD_NUMBER
=
$3
CURRENT_DIR
=
$(
cd
"
$(
dirname
"
$0
"
)
"
;
pwd
)
PGY_API_KEY
=
$4
PGY_USER_KEY
=
$5
DD_HOST_URL
=
$6
if
[
!
-n
"
${
NOW
}
"
]
;
then
if
[
!
-n
"
${
NOW
}
"
]
;
then
echo_error
"auto-upload 入参 'now' 有误!"
echo_error
"auto-upload 入参 'now' 有误!"
...
@@ -47,17 +49,15 @@ fi
...
@@ -47,17 +49,15 @@ fi
# 测试 demo
# 测试 demo
# 采蜜 蒲公英 上传 key
# 采蜜 蒲公英 上传 key
readonly
PGY_API_KEY
=
$4
readonly
PGY_USER_KEY
=
$5
readonly
DD_HOST_URL
=
$6
readonly
PGY_UPLOAD_SERVER
=
"https://qiniu-storage.pgyer.com/apiv1/app/upload"
PGY_UPLOAD_SERVER
=
"https://qiniu-storage.pgyer.com/apiv1/app/upload"
# 接收键盘输入
# 接收键盘输入
# read -p "请输入蒲公英更新 log:" pgy_upload_log
# read -p "请输入蒲公英更新 log:" pgy_upload_log
# echo_log "更新 log 为:${pgy_upload_log}"
# echo_log "更新 log 为:${pgy_upload_log}"
readonly
PGY_password
=
"
$((
$RANDOM
%
9999
+
1111
))
"
PGY_password
=
"
$((
$RANDOM
%
9999
+
1111
))
"
readonly
PGY_upload_log
=
"
"
PGY_upload_log
=
"
${
EBIZ_ENV
}
_
${
NOW
}
"
# 上传到蒲公英,并接收 Response
# 上传到蒲公英,并接收 Response
PGY_RESPONSE
=
`
curl
-F
"file=@/
${
EBIZ_IPA_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
}
`
PGY_RESPONSE
=
`
curl
-F
"file=@/
${
EBIZ_IPA_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
}
`
...
...
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