File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ PROJECT_PATH="$(dirname "$(PWD)")"
99# PARAMS TO CHANGE
1010#
1111
12+ BRANCH=' master'
13+
1214COMPANY=' my_company'
1315GAME_NAME=' new_game'
1416BUNDLE=' com.mygames.game'
@@ -50,6 +52,19 @@ UNITY='/Applications/Unity/Hub/Editor/2019.3.0f1/Unity.app/Contents/MacOS/Unity'
5052[ -d " $IOS_DEVELOPMENT " ] || mkdir " $IOS_DEVELOPMENT "
5153[ -d " $IOS_RELEASE " ] || mkdir " $IOS_RELEASE "
5254
55+ function UpdateRepo {
56+ echo ' '
57+ echo " update branch $BRANCH ..."
58+ echo ' '
59+ git fetch > " $LOGS_PATH /git.log" 2>&1
60+ git reset --hard HEAD >> " $LOGS_PATH /git.log" 2>&1
61+ git checkout $BRANCH >> " $LOGS_PATH /git.log" 2>&1
62+ git pull >> " $LOGS_PATH /git.log" 2>&1
63+ echo ' '
64+ echo " $BRANCH updated"
65+ echo ' '
66+ }
67+
5368function SendTelegramMessage {
5469curl $BOT_PROXY https://api.telegram.org/bot$BOT_TOKEN /sendMessage -m 60 -s -X POST -d chat_id=$CHAT_ID -d text=" $1 " > " $LOGS_PATH /bot.log" 2>&1
5570}
@@ -286,6 +301,8 @@ echo '|||||||||||||||||||||||||||||||'
286301echo ' '
287302echo ' '
288303echo ' '
304+ echo " 0 – Update branch $BRANCH "
305+ echo ' '
289306echo ' 1 – Run tests'
290307echo ' '
291308echo ' 2 – Android development'
@@ -309,6 +326,9 @@ exit 1
309326fi
310327clear
311328case $key in
329+ 0)
330+ UpdateRepo
331+ ;;
3123321)
313333Tests
314334;;
@@ -357,4 +377,4 @@ echo ''
357377exit 1
358378;;
359379esac
360- ShowElapsedTime
380+ ShowElapsedTime
You can’t perform that action at this time.
0 commit comments