155 Star 1.6K Fork 536

meetqy / flutter_luckin_coffee

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
upload_ios.sh 842 Bytes
一键复制 编辑 原始数据 按行查看 历史
meetqy 提交于 2019-12-20 15:40 . ios自动化打包脚本
_api_key=""
_uKey=""
_dir="/app/"
# ######### 脚本样式 #############
__LINE_BREAK_LEFT="\033[32;1m"
__LINE_BREAK_RIGHT="\033[0m"
# 打印信息
function printMessage() {
pMessage=$1
echo "${__LINE_BREAK_LEFT}${pMessage}${__LINE_BREAK_RIGHT}"
}
flutter clean;
flutter build ios;
if [ -d build/ios/iphoneos/Runner.app ]
then
mkdir app/Payload
cp -r build/ios/iphoneos/Runner.app app/Payload
cd app
filename=ios-$(date "+%Y%m%d%H%M").ipa
_dir=$_dir$filename
zip -r -m $filename Payload
cd ..
printMessage "打包成功😄"
open app
else
echo "遇到报错了😭, 打开Xcode查找错误原因"
say "打包失败"
fi
curl -F "file=@`pwd`$_dir" \
-F "uKey=$_uKey" \
-F "_api_key=$_api_key" \
"http://www.pgyer.com/apiv1/app/upload"
printMessage "\n上传成功 🚀 🚀 🚀"
Dart
1
https://gitee.com/meetqy/flutter_luckin_coffee.git
git@gitee.com:meetqy/flutter_luckin_coffee.git
meetqy
flutter_luckin_coffee
flutter_luckin_coffee
master

搜索帮助