Commit 469a163 1 parent ae1a68f commit 469a163 Copy full SHA for 469a163
File tree 1 file changed +21
-1
lines changed
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)")"
9
9
# PARAMS TO CHANGE
10
10
#
11
11
12
+ BRANCH=' master'
13
+
12
14
COMPANY=' my_company'
13
15
GAME_NAME=' new_game'
14
16
BUNDLE=' com.mygames.game'
@@ -50,6 +52,19 @@ UNITY='/Applications/Unity/Hub/Editor/2019.3.0f1/Unity.app/Contents/MacOS/Unity'
50
52
[ -d " $IOS_DEVELOPMENT " ] || mkdir " $IOS_DEVELOPMENT "
51
53
[ -d " $IOS_RELEASE " ] || mkdir " $IOS_RELEASE "
52
54
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
+
53
68
function SendTelegramMessage {
54
69
curl $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
55
70
}
@@ -286,6 +301,8 @@ echo '|||||||||||||||||||||||||||||||'
286
301
echo ' '
287
302
echo ' '
288
303
echo ' '
304
+ echo " 0 – Update branch $BRANCH "
305
+ echo ' '
289
306
echo ' 1 – Run tests'
290
307
echo ' '
291
308
echo ' 2 – Android development'
@@ -309,6 +326,9 @@ exit 1
309
326
fi
310
327
clear
311
328
case $key in
329
+ 0)
330
+ UpdateRepo
331
+ ;;
312
332
1)
313
333
Tests
314
334
;;
@@ -357,4 +377,4 @@ echo ''
357
377
exit 1
358
378
;;
359
379
esac
360
- ShowElapsedTime
380
+ ShowElapsedTime
You can’t perform that action at this time.
0 commit comments