Commit 7ef4a5e2 by CaryaLiu

feat: update ios_prebuild.sh

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