From c884d2a7708a6594ff2fb2599c191c4f7dba621e Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Thu, 20 Aug 2020 05:09:20 +0200 Subject: [PATCH] PS: Wipe Cpp folder before re-building IL2CPP application --- Il2CppTests/generate-binaries.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Il2CppTests/generate-binaries.ps1 b/Il2CppTests/generate-binaries.ps1 index 8504da6..2f06210 100644 --- a/Il2CppTests/generate-binaries.ps1 +++ b/Il2CppTests/generate-binaries.ps1 @@ -1,4 +1,4 @@ -# Copyright 2019-2020 Katy Coe - http://www.hearthcode.org - http://www.djkaty.com +# Copyright 2019-2020 Katy Coe - http://www.djkaty.com - https://github.com/djkaty # All rights reserved. # Compile all of the test items in TestSources via IL2CPP to produce the binaries necessary to run the tests @@ -120,6 +120,7 @@ gci $asm -filter $assemblies | % { $name = "GameAssembly-$($_.BaseName)-x86" echo "Running il2cpp for test assembly $name (Windows/x86)..." md $bin/$name 2>&1 >$null + rm -Force -Recurse $cpp/$name & $il2cpp $arg '--platform=WindowsDesktop', '--architecture=x86', ` "--assembly=$asm/$_,$mscorlib", ` "--outputpath=$bin/$name/$name.dll", ` @@ -136,6 +137,7 @@ gci $asm -filter $assemblies | % { $name = "GameAssembly-$($_.BaseName)-x64" echo "Running il2cpp for test assembly $name (Windows/x64)..." md $bin/$name 2>&1 >$null + rm -Force -Recurse $cpp/$name & $il2cpp $arg '--platform=WindowsDesktop', '--architecture=x64', ` "--assembly=$asm/$_,$mscorlib", ` "--outputpath=$bin/$name/$name.dll", ` @@ -151,6 +153,7 @@ gci $asm -filter $assemblies | % { $name = "$($_.BaseName)-ARMv7" echo "Running il2cpp for test assembly $name (Android/ARMv7)..." md $bin/$name 2>&1 >$null + rm -Force -Recurse $cpp/$name & $il2cpp $arg '--platform=Android', '--architecture=ARMv7', ` "--assembly=$asm/$_,$mscorlib", ` "--outputpath=$bin/$name/$name.so", ` @@ -169,6 +172,7 @@ gci $asm -filter $assemblies | % { $name = "$($_.BaseName)-ARM64" echo "Running il2cpp for test assembly $name (Android/ARM64)..." md $bin/$name 2>&1 >$null + rm -Force -Recurse $cpp/$name & $il2cpp $arg '--platform=Android', '--architecture=ARM64', ` "--assembly=$asm/$_,$mscorlib", ` "--outputpath=$bin/$name/$name.so", `