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", `