Commit 5f7ffa55 by app.developer

no message

parent fc2bda78
......@@ -20,12 +20,14 @@ NOW=$(date +"%Y_%m_%d_%H_%M_%S")
PROJECT_PATH=$(dirname $(cd "$(dirname "$0")"; pwd))
PSCHEME_PATH=($(find $PROJECT_PATH -name *.xcodeproj))
PSCHEME_NAME=${PSCHEME_PATH##*/}
EBIZ_SCHEME=(${PSCHEME_NAME//./ })
CURRENT_DIR=$(cd "$(dirname "$0")"; pwd)
EBIZ_IPA_PATH=$1
EBIZ_ENV=$2
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
echo_error "auto-upload 入参 'now' 有误!"
......@@ -47,17 +49,15 @@ fi
# 测试 demo
# 采蜜 蒲公英 上传 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
# echo_log "更新 log 为:${pgy_upload_log}"
readonly PGY_password="$(($RANDOM%9999+1111))"
readonly PGY_upload_log=""
PGY_password="$(($RANDOM%9999+1111))"
PGY_upload_log="${EBIZ_ENV}_${NOW}"
# 上传到蒲公英,并接收 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}`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment