Skip to content

Commit 6292ad1

Browse files
committed
git reset HEAD
1 parent 74fa9d1 commit 6292ad1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build_demo_apk_2020.3.cmd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ rem ============================================================================
1414
@echo "start to build 2020_3_version1"
1515

1616
cd %ProjectPath%
17+
git stash
18+
git reset HEAD --hard
1719
git checkout 2020_3_version1
1820
del %ProjectPath%\Assets\AndroidIl2cppPatchDemo\PrebuiltPatches\AllAndroidPatchFiles_version1.zip
1921
%BuildCmd% -executeMethod AndroidBuilder.BuildPatch -logFile build_version1.log
@@ -29,6 +31,7 @@ rem ============================================================================
2931
@echo "start to build 2020_3_version2"
3032

3133
cd %ProjectPath%
34+
git reset HEAD --hard
3235
git checkout 2020_3_version2
3336
del %ProjectPath%\Assets\AndroidIl2cppPatchDemo\PrebuiltPatches\AllAndroidPatchFiles_version2.zip
3437
%BuildCmd% -executeMethod AndroidBuilder.BuildPatch -logFile build_version2.log
@@ -44,6 +47,7 @@ rem ============================================================================
4447
@echo "start to build base version apk"
4548

4649
cd %ProjectPath%
50+
git reset HEAD --hard
4751
git checkout 2020_3_base
4852
%BuildCmd% -executeMethod AndroidBuilder.BuildWithoutPatch -logFile build_version0.log
4953
if not exist "%ProjectPath%\AndroidGradleProject_v1.0\Test\src\main\bin\com.test.test.apk" (

0 commit comments

Comments
 (0)