Commit cabe6b08 by CaryaLiu

feat: update Fastfile

parent 8c34eb92
ios @ 3fce927f
Subproject commit 3bd31d8adc35065b6cd12f7551dd80899ed075b4
Subproject commit 3fce927f62e5f55ddccf7ca4c1c17ba51321d864
#!/bin/bash
# git submodule update --init --recursive
# git checkout ${branch_name#*/} --recurse-submodules
# git pull
# git submodule foreach --recursive 'branch="$(git config -f $toplevel/.gitmodules submodule.$name.branch)"; [ "$branch" = "" ] && git checkout master || git checkout $branch'
# git submodule update --remote --merge
# npm install
# npm run bundle-ios
# git submodule foreach --recursive '[ -n "$(git status -s)" ] && git add * && git commit -am "update reactnative static file" || :'
# [ -n "$(git status -s)" ] && git commit -am "update directory"
# #git push --recurse-submodules=on-demand
# git submodule foreach 'git push' && git push
git submodule update --init --recursive
git checkout ${branch_name#*/} --recurse-submodules
git pull
git submodule foreach --recursive 'branch="$(git config -f $toplevel/.gitmodules submodule.$name.branch)"; [ "$branch" = "" ] && git checkout master || git checkout $branch'
git submodule update --remote --merge
npm install
npm run bundle-ios
git submodule foreach --recursive '[ -n "$(git status -s)" ] && git add * && git commit -am "update reactnative static file" || :'
[ -n "$(git status -s)" ] && git commit -am "update directory"
#git push --recurse-submodules=on-demand
git submodule foreach 'git push' && git push
# source ./enterios.sh
# release_choise: upload=> 代表只上传ipa包,不提交审核;upload_submit=> 代表上传ipa且提交审核
# bundle exec fastlane package build_configuration:$Configuration pgyer_desc:$pgyer_desc release_choise:$release_choise
# bundle exec fastlane package build_configuration:Debug pgyer_desc:ReactNative打包测试
git submodule foreach --recursive 'name="$(git config -f $toplevel/.gitmodules submodule.$name.path)"; branch="$(git config -f $toplevel/.gitmodules submodule.$name.branch)"; [ "$name" = "ios" ] && echo "$name" && fastlane submodule_push ios_branch:$branch || :'
git submodule foreach --recursive
'name="$(git config -f $toplevel/.gitmodules submodule.$name.path)"; \
branch="$(git config -f $toplevel/.gitmodules submodule.$name.branch)"; \
[ "$name" = "ios" ] && \
bundle exec fastlane package build_configuration:$Configuration pgyer_desc:$pgyer_desc release_choise:$release_choise branch:$branch || :'
# git submodule foreach --recursive 'name="$(git config -f $toplevel/.gitmodules submodule.$name.path)"; echo "$name"'
# bundle exec fastlane submodule_push
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