Skip to content

Commit

Permalink
Merge pull request #1 from ow-mods/dont-strip-certain-assemblies
Browse files Browse the repository at this point in the history
Don't touch certain assemblies to preserve strong name validation
  • Loading branch information
misternebula authored Jul 7, 2023
2 parents 58f6a46 + 5f2aea8 commit 3ec7988
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions strip-assembiles.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@echo off

set toPublicize=Assembly-CSharp.dll Assembly-CSharp-firstpass.dll
set dontTouch=Newtonsoft.Json.dll mscorlib.dll netstandard.dll System.Core.dll System.Data.dll System.dll

set exePath=%1
echo exePath: %exePath%
Expand All @@ -23,4 +24,11 @@ set outPath=%~dp0\package\lib
%~dp0\tools\NStrip.exe "%managedPath%\%%a" -o "%outPath%\%%a" -cg -p --cg-exclude-events
))

@REM Copy over original assemblies for ones we don't want to touch.
(for %%a in (%dontTouch%) do (
echo a: %%a

xcopy "%managedPath%\%%a" "%outPath%\%%a" /y /v
))

pause

0 comments on commit 3ec7988

Please sign in to comment.