
out_path=`date "+%Y-%m-%d-%H-%M-%S"`
IPANAME="DaBoLuo"
if [ ! -d "./pgyer_build_ipa" ];
then
mkdir ./pgyer_build_ipa
fi
mkdir ./pgyer_build_ipa/$out_path
if [ $# -eq 0 ]
then
fastlane gym --workspace "DaBoLuo.xcworkspace" --scheme "DaBoLuo" --configuration "Debug" --export_method ad-hoc --output_name ${IPANAME} --output_directory ./pgyer_build_ipa/$out_path
curl -F "file=@$PWD/pgyer_build_ipa/${out_path}/${IPANAME}.ipa" -F "uKey=" -F "_api_key=" -F "updateDescription=更新Debug版本" https://qiniu-storage.pgyer.com/apiv1/app/upload
else
MSG=$*
echo $MSG
fastlane gym --workspace "DaBoLuo.xcworkspace" --scheme "DaBoLuo" --configuration "Debug" --export_method ad-hoc --output_name ${IPANAME} --output_directory ./pgyer_build_ipa/$out_path
curl -F "file=@$PWD/pgyer_build_ipa/${out_path}/${IPANAME}.ipa" -F "uKey=" -F "_api_key=" -F "updateDescription=${MSG}" https://qiniu-storage.pgyer.com/apiv1/app/upload
fi
使用介绍:
前提安装好 fastlane


网友评论