From 9d66900f755b39e22daa15aeb49c1d4148bc1b96 Mon Sep 17 00:00:00 2001 From: Neubulae Date: Wed, 14 Feb 2024 16:23:53 +0800 Subject: [PATCH] Hacky attempt of impl. build process on Linux --- BuildHelper/BuildHelper.csproj | 106 ++++++++++++++++----- TheArchive.Core/TheArchive.Core.csproj | 23 ++++- TheArchive.IL2CPP/TheArchive.IL2CPP.csproj | 12 ++- TheArchive.MONO/TheArchive.MONO.csproj | 12 ++- 4 files changed, 120 insertions(+), 33 deletions(-) diff --git a/BuildHelper/BuildHelper.csproj b/BuildHelper/BuildHelper.csproj index be21c2ca..96bde7bc 100644 --- a/BuildHelper/BuildHelper.csproj +++ b/BuildHelper/BuildHelper.csproj @@ -12,6 +12,8 @@ net472 + .NETCOREAPP + 4.7.2 TRACE true pdbonly @@ -20,6 +22,8 @@ net6.0 + .NETCOREAPP + 6.0 TRACE true AnyCPU @@ -31,7 +35,22 @@ - + + @@ -70,29 +89,68 @@ - - + + diff --git a/TheArchive.Core/TheArchive.Core.csproj b/TheArchive.Core/TheArchive.Core.csproj index 5571bf88..ecb98480 100644 --- a/TheArchive.Core/TheArchive.Core.csproj +++ b/TheArchive.Core/TheArchive.Core.csproj @@ -14,7 +14,7 @@ - + net472 TRACE true @@ -23,7 +23,7 @@ AnyCPU prompt - + net6.0 TRACE true @@ -63,7 +63,7 @@ - + cd $(MSBuildProjectDirectory)\Resources\ if exist TheArchive.IL2CPP.dll ( @@ -80,6 +80,23 @@ ) + + + cd "$(MSBuildProjectDirectory)/Resources" + if [ -f "TheArchive.IL2CPP.dll" ]; then + echo "Not generating IL2CPP dummy dll" + else + echo "Generating IL2CPP dummy dll ..." + echo "DUMMY" > TheArchive.IL2CPP.dll + fi + if [ -f "TheArchive.MONO.dll" ]; then + echo "Not generating MONO dummy dll" + else + echo "Generating MONO dummy dll ..." + echo "DUMMY" > TheArchive.MONO.dll + fi + + diff --git a/TheArchive.IL2CPP/TheArchive.IL2CPP.csproj b/TheArchive.IL2CPP/TheArchive.IL2CPP.csproj index 05f09dfe..2da0b614 100644 --- a/TheArchive.IL2CPP/TheArchive.IL2CPP.csproj +++ b/TheArchive.IL2CPP/TheArchive.IL2CPP.csproj @@ -14,7 +14,7 @@ - + net472 TRACE;IL2CPP true @@ -23,7 +23,7 @@ AnyCPU prompt - + net6.0 TRACE;IL2CPP true @@ -171,10 +171,16 @@ - + cd $(MSBuildProjectDirectory) copy /y bin\$(Configuration)\TheArchive.IL2CPP.dll ..\TheArchive.Core\Resources\TheArchive.IL2CPP.dll + + + cd $(MSBuildProjectDirectory) + cp bin/$(Configuration)/TheArchive.IL2CPP.dll ../TheArchive.Core/Resources/TheArchive.IL2CPP.dll + + \ No newline at end of file diff --git a/TheArchive.MONO/TheArchive.MONO.csproj b/TheArchive.MONO/TheArchive.MONO.csproj index 54dbab94..db4f8b32 100644 --- a/TheArchive.MONO/TheArchive.MONO.csproj +++ b/TheArchive.MONO/TheArchive.MONO.csproj @@ -13,7 +13,7 @@ true R_ML;R_BIE - + net472 bin\R_ML\ TRACE;MONO @@ -22,7 +22,7 @@ AnyCPU prompt - + net6.0 bin\R_BIE\ TRACE;MONO @@ -311,10 +311,16 @@ - + cd $(MSBuildProjectDirectory) copy /y bin\$(Configuration)\TheArchive.MONO.dll ..\TheArchive.Core\Resources\TheArchive.MONO.dll + + + cd $(MSBuildProjectDirectory) + cp bin/$(Configuration)/TheArchive.MONO.dll ../TheArchive.Core/Resources/TheArchive.MONO.dll + + \ No newline at end of file