File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed
Assets/AndroidIl2cppPatchDemo/Editor Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -192,6 +192,15 @@ public static bool PatchAndroidProject()
192192 @"Boostrap.InitNativeLibBeforeUnityPlay(getApplication().getApplicationContext().getFilesDir().getPath());
193193 mUnityPlayer = new UnityPlayer(this);" ) ;
194194 File . WriteAllText ( javaEntranceFile , allJavaText ) ;
195+
196+ // generate removal test file
197+ string assetBinDataPath = EXPORTED_ASSETS_PATH + "/bin/Data/" ;
198+ string uselessFile1 = assetBinDataPath + "to_be_removed1.txt" ;
199+ File . WriteAllText ( uselessFile1 , "useless1" ) ;
200+
201+ string uselessFile2 = assetBinDataPath + "to_be_removed2.txt" ;
202+ File . WriteAllText ( uselessFile2 , "useless2" ) ;
203+
195204 return true ;
196205 }
197206
Original file line number Diff line number Diff line change 11rem global
2- SET UnityBin = " C:\Program Files\Unity2018 .4.4f1 \Editor\Unity.exe"
2+ SET UnityBin = " C:\Program Files\Unity\Hub\Editor\2018 .4.29f1 \Editor\Unity.exe"
33
44rem prepare build cmd
55SET ScriptPath = %~dp0
@@ -46,11 +46,11 @@ rem ============================================================================
4646cd %ProjectPath%
4747git checkout master
4848%BuildCmd% -executeMethod AndroidBuilder.BuildWithoutPatch -logFile build_version0.log
49- if not exist " %ProjectPath% \AndroidGradleProject \Test\src\main\bin\com.test.test.apk" (
50- echo " Build Failed! Please Rerun %ProjectPath% \AndroidGradleProject \Test\src\main\build_apk.bat to check the error."
49+ if not exist " %ProjectPath% \AndroidGradleProject_v1.0 \Test\src\main\bin\com.test.test.apk" (
50+ echo " Build Failed! Please Rerun %ProjectPath% \AndroidGradleProject_v1.0 \Test\src\main\build_apk.bat to check the error."
5151 exit -1
5252)
5353
54- copy /Y %ProjectPath% \AndroidGradleProject \Test\src\main\bin\com.test.test.apk %ScriptPath% \Il2cppDemo_com.test.test.apk
54+ copy /Y %ProjectPath% \AndroidGradleProject_v1.0 \Test\src\main\bin\com.test.test.apk %ScriptPath% \Il2cppDemo_com.test.test.apk
5555echo " Done!"
5656exit 0
You can’t perform that action at this time.
0 commit comments