1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| # 编译 security set-key-partition-list -S apple-tool:,apple: -s -k "woaini" ~/Library/Keychains/login.keychain-db rm -rf Gemfile.lock cd fastlane bundle install
VAR1="${BUILD_TYPE}" VAR2="beta" VAR3="debug" if [ "$VAR1" = "$VAR2" ]; then method="inhouse" elif [ "$VAR1" = "$VAR3" ]; then method="adhoc" else method="release" fi
bundle exec fastlane ios $method
# 上传到APP管理平台 result=$(curl -k -F "file=@$WORKSPACE/dist/ios/kidea_ios_${method}.ipa" <https://nas.vvusu.com:1020/app/upload>) code_url=$(echo $result | sed 's/.*\\(http.*\\)",.*/\\1/g') echo "code_url="$code_url > $WORKSPACE/code.txt
|