PS: Force IL2CPP cache to same folder as output
This commit is contained in:
@@ -162,9 +162,12 @@ function Do-IL2CPP-Build {
|
|||||||
|
|
||||||
# Compile
|
# Compile
|
||||||
md $bin/$TargetBaseName 2>&1 >$null
|
md $bin/$TargetBaseName 2>&1 >$null
|
||||||
|
md $bin/$TargetBaseName/cache 2>&1 >$null
|
||||||
|
|
||||||
& $il2cpp $compileArg $AdditionalArgs "--platform=$Platform", "--architecture=$Architecture", `
|
& $il2cpp $compileArg $AdditionalArgs "--platform=$Platform", "--architecture=$Architecture", `
|
||||||
"--outputpath=$bin/$TargetBaseName/$TargetBaseName.$ext", `
|
"--outputpath=$bin/$TargetBaseName/$TargetBaseName.$ext", `
|
||||||
"--generatedcppdir=$cpp/$Name" >$null
|
"--generatedcppdir=$cpp/$Name", `
|
||||||
|
"--cachedirectory=$bin/$TargetBaseName/cache" >$null
|
||||||
|
|
||||||
if ($LastExitCode -ne 0) {
|
if ($LastExitCode -ne 0) {
|
||||||
Write-Error "IL2CPP error - aborting"
|
Write-Error "IL2CPP error - aborting"
|
||||||
@@ -173,6 +176,7 @@ function Do-IL2CPP-Build {
|
|||||||
|
|
||||||
mv -Force $bin/$TargetBaseName/Data/metadata/global-metadata.dat $bin/$TargetBaseName
|
mv -Force $bin/$TargetBaseName/Data/metadata/global-metadata.dat $bin/$TargetBaseName
|
||||||
rm -Force -Recurse $bin/$TargetBaseName/Data
|
rm -Force -Recurse $bin/$TargetBaseName/Data
|
||||||
|
rm -Force -Recurse $bin/$TargetBaseName/cache
|
||||||
}
|
}
|
||||||
|
|
||||||
# Generate build for each target platform and architecture
|
# Generate build for each target platform and architecture
|
||||||
|
|||||||
Reference in New Issue
Block a user